Facebook 图表 API 不再工作。没有做任何改变

Facebook Graph API not working anymore. No changes made

在过去的几周里,我偶尔会通过这个电话从几个 Facebook 页面下载帖子:

https://graph.facebook.com/105317422843784/posts

一切正常,我会得到 public 帖子的通常 json 响应(不需要身份验证 afaik)。

现在我明白了:

{ "error": { "message": "An access token is required to request this resource.", "type": "OAuthException", "code": 104 } }

我的代码没有改动任何东西,我在两个不同的浏览器和两台不同的机器上测试了相同的结果。我认为我没有达到任何限制(我很少使用 API)。我也找不到对 API 所做的任何更改。

还有其他人遇到这个问题吗?谁能指出我的线索?

摘自以下文档:https://developers.facebook.com/docs/graph-api/reference/v2.2/page/feed/

An access token is required to view publicly shared posts.
A user access token is required to retrieve posts visible to that person.
A page access token is required to retrieve any other posts.

您似乎需要访问令牌。

从今天开始,为了从 public 页获取帖子 through Facebook Graph, we always need to use Access Tokens

新权限

  • An access token is required to view publicly shared posts.
  • A user access token is required to retrieve posts visible to that person.
  • A page access token is required to retrieve any other posts.

旧权限

  • An app or user access token is needed to view fields from fully public pages.
  • A user access token is needed to view fields from restricted pages that this person is able to view (such as those restrict to certain demographics like location or age, or those only viewable by Page admins).
  • A page access token can also be used to view those restricted fields.

Facebook 正在经历他们最近的冲突和指控的整个变化。他们暂时停止了所有 API 拉动,一旦他们审查了您的所有 Facebook 开发者应用程序,他们将再次授予访问权限。