Is possible to use Facebook's (Page) Graph API without having an role in that page?

混江龙づ霸主 提交于 2019-12-11 13:45:44

问题


For example, let's say I need to "crawl" (not manually since it looks against Facebook's policies but via graph API) some information from a Facebook's brand page (e.g. https://www.facebook.com/nike/ ).

For example I may need to collect the following fields from a set of brand pages (not just one, such as the one mentioned above, for which I could definitely do it manually), when they are publicly available: ("About tab") - description - address - website - ...

I was reading Facebook's graph API docs and permissions.

However these permissions are related to users and I already worked with that. What I learned it that it works by

Facebook login --> auth the app to use my data --> the app has access to my data as a Facebook user.

However I'm now interested in brand pages for which I found this docs and this (access token). However it seems that to be able to use this access token I need to be a user with some role in the page (e.g. admin) and not any user who just liked that page.

So, is it possible to access brand pages' data (read-only, i.e. GET) via graph API without actually owning/admin/publishing on that page?


回答1:


Apparently no "special" access token is required to access pages' public info.

For example I can create any page (not app) in my Facebook account and then use

GET https://graph.facebook.com/(*1)/feed?access_token=(*2)

  • (*1) the page's name (nike) or ID
  • (*2)my "bridge" page (i.e. empty page, only used to have an access token. not the page I'm using the graph api on)'s access token

Similarly for /posts/ etc.



来源:https://stackoverflow.com/questions/33585461/is-possible-to-use-facebooks-page-graph-api-without-having-an-role-in-that-pa

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