https://graph.facebook.com/me/home?access_token=token
will return all feeds for a user news feed. But i am looking for filters like type=post or type=photos etc
Is this functionality available in facebook api??
You can filter results in home
connection of user
filtered by user's stream filters by using filter
argument. For example photos may be accessed with:
https://graph.facebook.com/me/home?filter=app_2305272732
And Links:
https://graph.facebook.com/me/home?filter=app_2309869772
filter
should be one of those returned by next FQL query:
SELECT filter_key FROM stream_filter WHERE uid=me()
See stream_filter
table for details.
BTW: Beware, not everything may be possible to use as filters, for example statuses (those easier to access via /me/statuses
than via /me/home
)...
我找不到它的记录,但是我只是尝试了以下URL,它起作用了:
https://graph.facebook.com/me/home/photos?access_token=token
For anyone looking to do this with fql
, I recently wrote a blog post of getting photos and videos from Facebook news feed. And here is the query that I use.
SELECT actor_id, created_time, likes, post_id, attachment FROM stream WHERE filter_key IN ( SELECT filter_key FROM stream_filter WHERE uid = me() AND (name = "Photos" OR name = "Video"))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.