2

問題があります.. OAuth なしで fb グラフ 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

常に OAuth アクセス トークンを含める必要があります (ユーザーの代わりに直接作業している場合はユーザーのものであるか、ユーザーのコンテキストで何かを行っていない場合はアプリのものであるかに関係なく)。そうしないと、アクセスできるはずのすべてのものにアクセスできない可能性があります。

于 2010-06-02T18:10:21.677 に答える
0

I am not sure whether or not you need OAuth but here is how you can get the access token.

More Resources:

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

于 2010-06-02T10:00:05.307 に答える
0

Yes, OAuth is the only supported form of authentication. However, some pages don't require it, such as fan pages (e.g. https://graph.facebook.com/cocacola/feed)

EDIT: Facebook has apparently changed their policy on this endpoint.

于 2010-06-02T10:02:01.013 に答える