Facebook PHP SDK app to upload photo to page

南笙酒味 提交于 2019-12-01 20:30:46

When you do:

$facebook->api('/XXXXXXXXXX/photos', 'POST', array(

... is XXXXXXXXXX your appId or the albumId? You must do the call to your album ID.

Also make sure you are using the correct $access_token. To make sure look at:

https://graph.facebook.com/yourPageID?fields=access_token&access_token=YourPersonalAccessToken

where yourPersonalAccessToken is:

A Page admin access_token for this page; The current user must be an administrator of this page; only returned if specifically requested via the fields URL parameter.

Your must grant to graph api manage_pages permissions.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!