Saturday, 15 March 2014

Facebook 2.1 API get home feed and sort by type -



Facebook 2.1 API get home feed and sort by type -

i've tried searching , can't find answer.. i've tried own feed 1 or several type "link" or "video".

i played facebook explorer tool, i've got own feed endpoint me/home don't known how can sort type (link, status, video or photo)

someone has thought ?

thanks.

this available in docs, explained little complicated: https://developers.facebook.com/docs/graph-api/reference/v2.1/user/home/

the parameter filter can used

retrieve posts match particular stream filter. valid filters used here can retrieved using fql stream_filter table.

the docs stream filter here: https://developers.facebook.com/docs/reference/fql/stream_filter/ can query own stream filters issueing next fql query:

select name, filter_key stream_filter uid=me()

test here: https://developers.facebook.com/tools/explorer?fql=select%20name%2c%20filter_key%20from%20stream_filter%20where%20uid%3dme()&version=v2.0

this yields in next filters (at to the lowest degree me):

photos: /me/home?filter=app_2305272732 videos: /me/home?filter=app_2392950137 links: /me/home?filter=app_2309869772 statuses: /me/home?filter=app_2915120374

facebook api facebook-graph-api-v2.0

No comments:

Post a Comment