问题描述
我正在开发一个与用户Facebook帐户同步并获取Facebook页面信息的应用程序.最初,应用程序要求登录Facebook并获取页面列表.获取页面后,我将调用API以获取与每个页面相关的帖子.获得帖子详细信息后,我将调用洞察API,以获取每个帖子的见解.此流程在开发模式下可以正常工作,但是当我切换到实时模式时,出现以下错误
I am developing an app that syncs with users Facebook account and fetches Facebook page information. Initially, app asks for Login with Facebook and gets page list. After getting pages I am calling API to get posts associated with each page. Once I get post details then I am calling insight APIs to get insights of each post.This flow working fine with development mode but when I switch to Live mode I am getting the following error
Client error: `GET https://graph.facebook.com/v4.0/100575944711552/feed` resulted in a `400 Bad Request` response:{"error":{"message":"(#100) Pages Public Content Access requires either app secret proof or an app token","type":"OAuthE (truncated...)
{"userId":1,"email":"[email protected]","exception":"[object] (GuzzleHttp\\Exception\\ClientException(code: 400): Client error: `GET https://graph.facebook.com/v4.0/100575944711552/feed` resulted in a `400 Bad Request` response:
{\"error\":{\"message\":\"(#100) Pages Public Content Access requires either app secret proof or an app token\",\"type\":\"OAuthE (truncated...)
从细节上我观察到我在使用时遇到此错误,
From the details what I observed I am getting this error while using,
GET /v5.0/{page-id}/feed HTTP/1.1
Host: graph.facebook.com
此端点.我目前有2个许可已批准,
this endpoint. I am currently having 2 permissions approved,
- 管理页面2. read_insights应用审查小组拒绝了2个权限,称该请求无效,在本用例中,我们不要求这样做,1.页面提及2. user_posts
- manage_pages 2. read_insightsand app review team rejected 2 permissions saying the request is invalid and for this use case we don't require this which are,1.Page Mentions 2. user_posts
任何人都可以帮助我了解确切的问题吗?
Can anyone help me to understand what is the exact issue?
推荐答案
我遇到了同样的问题.再次对他们该死的更改做出反应后( manage_pages 是不再是东西了).我只有pages_manage_metadata
,但没有pages_read_engagement
才能实际读取页面上的内容... -.-
I had the same problem. Upon reacting to their damn changes yet again (manage_pages is not a thing anymore). I only had pages_manage_metadata
but not pages_read_engagement
to actually read the content on the page... -.-
这篇关于获取“(#100)页面公共内容访问权需要应用程序秘密证明或应用程序令牌". Facebook API调用时出现问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!