Facebook PHP SDK Issue with specific Facebook Id -


I am using the following to get information about Facebook pages, which I am the administrator. Particularly the number of likes

  // Get the User ID $ page = $ facebook-> API ($ ID); Return page $ ['liked'];  

This works fine for 20 Facebook pages, which I administer, but I have run it in a case where it is not. This is the error that I am getting in response.

  Get an unsupported request Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api  

I checked The ID being used that is correct by viewing the Facebook ID page. Administrator settings runs in an error even when entering url pages.

Has anyone else experienced this? Is this a bug?

I'm pretty sure that you are not using an access token to capture page preferences, And that a page is restricted by age or country either, or it is unpublished, in addition, the return value can be confusing by calling "$ user", it is not a user object, it is a page object, right is?

For restricted pages, you must use a user or page access token that the user can access the page.


Comments