Facebook PHP SDK - Getting error when posting to facebook page but post is created

北城余情 提交于 2019-12-06 06:10:34

This is specifically related to POSTing the link field to the /{page-id}/feed endpoint.

This error is returned when your app is in development mode. If you make the app live, it should work.

Pretty sure this is not the intended behavior, so I submitted a bug report.

I also seen similar kind of errors, when i was writing code for to develop Facebook APP.

I used same idea, made another call to get fresh access token. Then made Graph API call with newly created token. This worked for me, and also my app was still in development mode.

I seen code and think that you are passing parameters in Graph API URI these are not needed to make call. Don't use like this

$request = new FacebookRequest($session, 'GET','/me/accounts?fields=name,access_token,perms');

Instead try this $request = new FacebookRequest($session, 'GET', /me/accounts');

Happy Coding! Atul Jindal

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