1

Take for example

http://www.facebook.com/photo.php?v=10150130077340815&set=vb.22092443056&type=2&theater

If I try and access that object in the graph explorer

https://graph.facebook.com/10150130077340815

I get an OAuthException which says I need a user token.

But if I just go to the above URL on the FB website, I can see the video just fine!

HOW can I programatically access objects like that -- where I can see when on Facebook-the-site without being logged in, but can't get at them in code without an access token?

WHat incredibly simple thing am i missing here?

4

1 に答える 1

0

グラフAPIを使用する場合、他のオブジェクトが所有するオブジェクトにアクセスするには、アクセストークンが必要です。

ここに移動してクエリを試すことで、これを確認できます...機能しません。

次に、[アクセストークンの生成]をクリックし、同じクエリ(10150130077340815の場合)を試してみてください。スターバックスのものがあります。

アクセストークンを取得すると、これを実行できるはずです。これが完全なものでなければならない場合、それを更新するためにいくつかのフープを飛び越えなければならないかもしれません。

于 2012-07-26T14:49:09.217 に答える