要使用 'Page Public Content Access',您对这个端点的使用必须经过 Facebook 的审查和批准

To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook

如您在上面的屏幕截图中所见,我获得了 Facebook 应用程序审核批准,但现在我尝试访问 Facebook public 页面帖子和每页评论。尽管如此,我仍在 R 控制台中进行以下按摩:

callAPI(url = url, token = token, api = api) 中的错误:

(#10) To use 'Page Public Content Access', your use of this endpoint must be reviewed and approved by Facebook. To submit this 'Page Public Content Access' feature for review please read our documentation on reviewable features: https://developers.facebook.com/docs/apps/review.

I got Facebook app review approval

不,你没有...

您填写了所有必要的信息,因此您现在可以提交您的评论 - 这就是那些绿色复选标记的意思。

如果你真的已经审查过,那么它会在权限前面显示一个绿色圆圈,并且不会显示“编辑详细信息”。

如果您陷入应用程序批准的无限循环(Facebook 不想批准您的应用程序,因为 "use case data is not visible")我认为唯一的解决方案是临时创建您自己的页面(或使用一些现有页面),然后抓取该页面的内容。

以下是 Facebook 对 "Page public content access" 的评价:

"While you are testing your app and before you submit it for review, your app can only access content on a Page for which the following is true: The person who holds the admin role for the Page also holds an admin, developer, or tester role on the app. If you want the app to be able to access public content on other Pages, you must submit this feature for review. Once you set your app to live mode, it will not be able to see any Page public content without this feature."

如果您的应用程序需要访问与应用程序具有相同管理员的页面的访问令牌,那么您可以使用 manage_pages 权限获取它,否则(对于具有不同管理员的页面)您需要 "Page Public Content Access" 权限.