Accessing user feed using Facebook Graph API v2.0

avdhut

I recently created an app in Facebook. By default the API version used was v2.0. Thus for every new user it generated a 'App-scoped User ID'. I am retrieving the ids of users through the graph api search feature.

Now I want to use the /{user-id}/feed to fetch feed of a specific user.

Is there a way I can access a specific user's feed using an access token generated for my Facebook account through a Facebook app?

Fruit

Page and User is different thing. For page, you can access PAGE_ID/feed easily with App Access Token if this post is not restriced (age, gender...etc).If the post is restricted, then you must use User access token to access this posts.

For user is different story, Facebook is very strict on user feed. So you must use User access token to get User_ID/feed.

I suggest you to do like that way:

  1. If the user is your app user authorized with read_stream permission, then you access the USER_ID/feed. It's because USER_ID/feed endpoint only available if user give permission read_stream to your app. App Access Token is not allow.
  2. If the user is not your app user with read_stream, then you access the USER_ID/links instead. It's because no read_stream permission require to access this endpoint. App Access Token is not allow.
  3. If this is a page, then you access the PAGE_ID/feed(better) or PAGE_ID/links. App Access Token is allow except restricted posts. So it's better to use User Access Token.

As document stated:

Any valid access token is required to view public links.

This statement is wrong and misleading because App Access Token may able to read PAGE_ID/links(non-restricted post) but it can't read the USER_ID/links endpoint.

Theres's some other variant endpoints, e.g. USER_ID/statuses, in which:

  1. App access token not allow.

  2. If the user A did not give permission user_status to app X, then (App X)User A Access Token access user_A_ID/statuses will only return status type posts post via app X.

  3. If the user A did give permission user_status to app X, then (App X)User A Access Token access user_A_ID/statuses will return all status type posts without app restriction.

  4. If the user A did not give permission user_status to app X, then (App X)User B Access Token access user_A_ID/statuses will not return any data.

  5. If the user A did give permission user_status to app X, then (App X)User B Access Token access user_A_ID/statuses will return all status type posts without app restriction which was public.

Update: Facebook API changed again and now USER_ID/links only accessible for the same app user id.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Get news feed using Facebook Graph API

From Dev

Get news feed using Facebook Graph API

From Dev

Get user wall feed posts with custom filter using Facebook Graph API

From Dev

Facebook graph api to get recent feed's by other user

From Dev

There is a way to get the feed of an user via the open graph api of facebook?

From Dev

Facebook Graph API - Get user feed posts with pictures

From Dev

Post message with picture to facebook page/feed using graph api

From Dev

Accessing Facebook Graph API video insights using Python

From Dev

Facebook Graph API: Missing posts from feed

From Dev

Facebook Graph API: Missing posts from feed

From Dev

empty friends array in facebook open graph api v2

From Dev

empty friends array in facebook open graph api v2

From Dev

Publishing links using Facebook graph API display feed as attachment on Facebook fan page

From Dev

What viewController to use with Facebook Graph API /{user-id}/feed (iOS)

From Dev

Access profile pictures using Facebook's Graph API v2.3 without user login

From Dev

Accessing an application page with facebook graph api

From Dev

Accessing Properties/Methods in Facebook PHP Graph API

From Dev

Accessing Facebook Graph API without login

From Dev

Get ALL User Friends Using Facebook Graph API - Android

From Dev

Facebook Graph API Call Without Using User Login

From Dev

How to retrieve user country using facebook Graph API?

From Dev

Get Facebook User Email Using Graph API PHP SDK

From Dev

How to get planned events of a user using Facebook Graph API

From Dev

Facebook Graph API /me/Feed V2.4 vs V2.3

From Dev

Facebook Graph API v2.4 not returning extended user data

From Dev

Facebook Graph API v2.4 not returning extended user data

From Dev

Get home feed of a particular user of a specific time stamp using graph API

From Dev

Facebook Graph API - Unsupported GET request for accessing Facebook Ads Campaigns?

From Dev

Manipulate photos url in facebook custom feed (graph API)

Related Related

  1. 1

    Get news feed using Facebook Graph API

  2. 2

    Get news feed using Facebook Graph API

  3. 3

    Get user wall feed posts with custom filter using Facebook Graph API

  4. 4

    Facebook graph api to get recent feed's by other user

  5. 5

    There is a way to get the feed of an user via the open graph api of facebook?

  6. 6

    Facebook Graph API - Get user feed posts with pictures

  7. 7

    Post message with picture to facebook page/feed using graph api

  8. 8

    Accessing Facebook Graph API video insights using Python

  9. 9

    Facebook Graph API: Missing posts from feed

  10. 10

    Facebook Graph API: Missing posts from feed

  11. 11

    empty friends array in facebook open graph api v2

  12. 12

    empty friends array in facebook open graph api v2

  13. 13

    Publishing links using Facebook graph API display feed as attachment on Facebook fan page

  14. 14

    What viewController to use with Facebook Graph API /{user-id}/feed (iOS)

  15. 15

    Access profile pictures using Facebook's Graph API v2.3 without user login

  16. 16

    Accessing an application page with facebook graph api

  17. 17

    Accessing Properties/Methods in Facebook PHP Graph API

  18. 18

    Accessing Facebook Graph API without login

  19. 19

    Get ALL User Friends Using Facebook Graph API - Android

  20. 20

    Facebook Graph API Call Without Using User Login

  21. 21

    How to retrieve user country using facebook Graph API?

  22. 22

    Get Facebook User Email Using Graph API PHP SDK

  23. 23

    How to get planned events of a user using Facebook Graph API

  24. 24

    Facebook Graph API /me/Feed V2.4 vs V2.3

  25. 25

    Facebook Graph API v2.4 not returning extended user data

  26. 26

    Facebook Graph API v2.4 not returning extended user data

  27. 27

    Get home feed of a particular user of a specific time stamp using graph API

  28. 28

    Facebook Graph API - Unsupported GET request for accessing Facebook Ads Campaigns?

  29. 29

    Manipulate photos url in facebook custom feed (graph API)

HotTag

Archive