问题描述
例如,假设我需要爬网"(不是手动进行的,因为它违反了Facebook的政策,而是通过图形API),来自Facebook品牌页面的某些信息(例如 https://www.facebook.com/nike/).
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
但是我现在对品牌页面感兴趣,为此我找到了文档和此(访问令牌).但是,似乎要能够使用此访问令牌,我需要是在页面中具有某种角色的用户(例如admin),而不是只是喜欢该页面的任何用户.
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.
因此,是否可以通过图形API访问品牌页面的数据(只读,即GET),而无需实际拥有/管理/发布该页面?
推荐答案
显然,不需要特殊"访问令牌即可访问页面的公共信息.
Apparently no "special" access token is required to access pages' public info.
例如,我可以在我的Facebook帐户中创建任何页面(非应用程序),然后使用
For example I can create any page (not app) in my Facebook account and then use
- (* 1)页面名称(耐克)或ID
- (* 2)我的桥接"页面(即空白页面,仅用于拥有访问令牌.不是我正在使用图形API的页面)的访问令牌
- (*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
类似于/posts/等.
Similarly for /posts/ etc.
这篇关于是否可以使用Facebook的(页面)Graph API,而无需在该页面中扮演角色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!