问题
I want to get /{user-id}/feed
from another user (user B) rather than "me" (user A), but the query returns an empty list.
I'm using the Graph API Explorer to make the queries, and I've got the Access Token with user_posts
, user_status
and read_stream
permissions, but I can't get this information.
In this thread is said that:
Additionally the queried user needs to grant the app the read_stream permission.
In this other thread they said:
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.
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.
MY QUESTIONS:
- Do I really need this other user (user B) to grant this permission to access his feed?
- Where can I find official documentation saying so?
- As
/{user-id}/links
seems to be accessible, areposts
,statuses
ortagged
accessible too, or I just can accesslinks
without User B granting this permission?
Note:
Since the purpose is to use it in and iOS and Android App I can't use the read_stream
permission, so I would use the user_posts
which is supposed to be valid as they say in https://developers.facebook.com/docs/graph-api/reference/v2.3/user/feed
>
回答1:
- Of course, why would anyone want your App to access his newsfeed without his authorization? Keep in mind that not only the user would be able to access the feed of his friends, but the App too - which means, it would be easy for the App developer to get access.
- Should be clear with number 1. Why would there even be a permission if you could just grab the feed from another user with it?
- You can´t get ANY data from a user without his authorization, for privacy reasons. Friend permissions are gone.
来源:https://stackoverflow.com/questions/29289407/facebook-graph-api-user-id-feed-from-others-empty