Facebook 照片上传至粉丝专页相册失败
我很久以前就编写了一个应用程序,将粉丝页面上的照片发布到特定的相册中。
现在我已经半年没有使用了。现在我必须再次设置应用程序并再次向粉丝页面 (streamm_publish) 授予扩展权限。 但现在我遇到了一个问题,我正在使用旧的 REST API,现在出现了错误:发生未知错误,错误代码为 1。
然后我尝试通过 Facebook Graph api 进行发布。 我尝试调用 Api /pageid/albumid/photos 不起作用(未知路径组件) 我尝试拨打 /albumid_from_my_page/photos 然后照片被发布到我的个人资料中 我尝试将其上传到 /pageid/photos ,与上面的相同,
但 REST Api 的代码运行良好,那里有什么问题,以及为什么新的 Graph Api 无法正常工作?(BUG? )
I have written an Application what posts Photos on a FanPage into a Specific Album long time ago.
Now I didn't used for a half year. Now I had to set up the Application again and grant the extended Permissions to the Fan Page (streamm_publish) again.
But now I've a Problem, I'm using the old REST API what now gives me the error: An unknown error ocurred with the error code 1.
Then I tried to post throught the Facebook Graph api.
I tried to make a call to the Api /pageid/albumid/photos what's not working(Unknown path components)
I tried to makea a call to /albumid_from_my_page/photos then the Photos were posted to my profile
I tried to upload it to /pageid/photos what is the same as the one above
But the code fpr the REST Api worked well, what's the problem there, and why the new Graph Api isn't working how she should?(BUG?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要将照片发布到相册,代码如下:
现在我想与页面相册进行交互,您需要将页面
access_token
添加到您的$post_data
数组中,为此检查这个答案< /a>.To post a photo to an album, this is the code:
Now I suppose to interact with the page albums you need a page
access_token
added to your$post_data
array, for this check this answer.您需要获取 ACCESS_TOKEN 页面...
尝试:
http://graph.facebook.com/me/accounts?access_token= 获取此内容使用图形 API 的令牌...或使用 getAccessToken()...
并且将看到您拥有的所有页面和应用程序,找到适合此案例的应用程序并复制令牌...该死!
可以看到这个令牌认为 GRAPH API EXPLORER...
问候。
You need take ACCESS_TOKEN page...
try:
http://graph.facebook.com/me/accounts?access_token= GET THIS TOKEN USING GRAPH API... OR MAKE USING the getAccessToken()...
and will see all pages and aplications that u have, find just application for this case and COPY TOKEN... and damn!!!
It's possible to see this token thought GRAPH API EXPLORER...
regards.