我的代码或Facebook错误出错?

时间:2013-01-21 20:58:40

标签: facebook-graph-api

我正在尝试以编程方式在Facebook页面上创建相册,并向其添加照片。

我先问这里是因为: 一个。 FB文档表明这应该有效 湾这似乎在Graph Explorer应用程序上正常工作,但在我的应用程序中表现得非常奇怪

我正在使用两个令牌:

token1: token obtained through a /me/accounts call, access token for the FB page I'm working on
token2: OAuth token for an admin user to my page.

我看到以下行为:

POST: https://graph.facebook.com/466360143411217/albums?access_token=token1
with post data {'message': 'New Album', 'name': 'Proof of concept2'}

=> {'id':'466444663402765'}

GET: https://graph.facebook.com/466360143411217/albums?access_token=token1
=> '466444663402765' is not in list of albums

GET: https://graph.facebook.com/466444663402765?access_token=token1
=> code 400 Unsupported get request.

请注意:

 GET: https://graph.facebook.com/466444663402765?access_token=token2
    => correct album is shown

GET: https://graph.facebook.com/466360143411217/albums?access_token=token2
=> '466444663402765' is shown in list of albums

0 个答案:

没有答案