Facebook Graph API {user-id}/feed from others empty

╄→гoц情女王★ 提交于 2020-01-06 02:28:09

问题


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:

  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.

MY QUESTIONS:

  1. Do I really need this other user (user B) to grant this permission to access his feed?
  2. Where can I find official documentation saying so?
  3. As /{user-id}/links seems to be accessible, are posts, statuses or tagged accessible too, or I just can access links 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:


  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.
  2. 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?
  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!