Mar*_*rác 5 facebook-graph-api
Just recently, my attempts to get comments of my post via API fails with Permission denied. I'm pretty sure that it worked before (early Aug 2021).
I'm able to get posts of my page (in both API and Graph Explorer) via /ID/posts but I'm not able to get user generated content via /ID_POST/comments. I got
{
"error": {
"message": "(#200) Missing Permissions",
"type": "OAuthException",
"code": 200,
"fbtrace_id": "AQuGaEEWWkJ_L380WhfeDPy"
}
}
Run Code Online (Sandbox Code Playgroud)
but I have page token with pages_read_engagement, pages_show_list, pages_read_user_content (what should be enough by itself). The application is in production mode and business account is verified. So additional approval of permissions should be not be required.
What am I doing wrong?
我遇到过同样的问题。原因是因为我没有业务管理器中相关页面的“社区活动访问权限”。
您可以通过转到 Facebook 商务管理 -> 业务设置 -> 帐户 -> 页面 -> {您想要从中提取评论的页面} -> {您的个人资料}来查看您是否有此功能。然后你会看到一些切换。如果可以(您可能需要页面所有者的额外权限),您将需要切换“社区活动”或“管理页面”。
一旦我这样做了,我就没有问题了。我还发现我需要使用页面访问令牌而不是用户令牌或应用程序令牌。
| 归档时间: |
|
| 查看次数: |
1531 次 |
| 最近记录: |