MichaelDBang
MichaelDBang

Reputation: 31

Missing Posts when Accessing /me/feed via Graph API

I am currently attempting to retrieve all the posts on my Timeline via Facebook's Graph API. My Likes and Links and Posts appear to retrieve just fine, but posts from friends do not appear to be displaying.

For instance, a friend shared a link on my timeline, and that is currently not displaying in the returned data in my request to /me/feed.

I've tried turning on all permissions, but can't seem to get that particular post in my return data. Is there something obvious I'm overlooking?

Thank you for any assistance, Michael

Upvotes: 3

Views: 1710

Answers (2)

林果皞
林果皞

Reputation: 7823

Please test with Graph API explorer, https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Ffeed, click "Get access token" button and tick "read_stream" check box under "Extended Permissions" tab. Then submit and proceed authentication process.

After authentication dialog done, click "Submit" and try to test to get the link shared by your friend. I've no problem to see this kind of feed. Of course, you can create a new account and behave as your friend for easier to test, otherwise you need go through pagination to get the target feed.

Upvotes: 0

ShawnDaGeek
ShawnDaGeek

Reputation: 4150

If a users permissions for a post are set to anything other than public if could be omitted from the result set.

Check the privacy for that missing post.

refer to: https://developers.facebook.com/docs/reference/api/privacy-parameter/

me/feed privacy: https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=me%2Ffeed%3Ffields%3Dprivacy

Upvotes: 1

Related Questions