获取“(#100)页面公共内容访问需要应用程序机密证明或应用程序令牌";调用 Facebook API 时出现问题? [英] Getting "(#100) Pages Public Content Access requires either app secret proof or an app token" issue when calling Facebook API?

查看:21
本文介绍了获取“(#100)页面公共内容访问需要应用程序机密证明或应用程序令牌";调用 Facebook API 时出现问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个与用户 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":"superuser@corals.io","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,

  1. manage_pages 2. read_insights并且应用审查团队拒绝了 2 个权限,称请求无效,对于这个用例,我们不需要这个,它们是,1. 页面提及 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 时出现问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆