2

我有一个问题..我想使用没有 OAuth 的 fb graph API 从 facebook 页面获取所有提要,但我有一个问题

https://graph.facebook.com/[page ID]/feed
i get the following response 

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

当我检查另一个页面时,它得到了正确的响应

https://graph.facebook.com/[another page ID]/feed

{
   "data": [
      {
...

为什么它要求一个页面的访问令牌......而对另一个页面却没有这样做?

编辑

我在 2 天前检查了第一页 Graph 调用,它工作 100%

4

3 回答 3

1

You should always be including an OAuth access token (whether it's a user's, if you're working directly on behalf of a user, or your app's, if you're not doing something in a user's context). Otherwise you might not be able to access all of the things that you should be able to access.

于 2010-06-02T18:10:21.677 回答
0

我不确定您是否需要 OAuth,但这是获取访问令牌的方法。

更多资源:

http://developers.facebook.com/docs/api

于 2010-06-02T10:00:05.307 回答
0

是的,OAuth 是唯一受支持的身份验证形式。但是,有些页面不需要它,例如粉丝页面(例如https://graph.facebook.com/cocacola/feed

编辑:Facebook 显然已经改变了他们在这个端点上的政策。

于 2010-06-02T10:02:01.013 回答