Limited page of Facebook page via Graph API using PHP SDK

I am trying to use the PHP PHP SDK to get the number of fans I like on the page. This works fine for most pages, but some pages return false because they have age limits. Using the PHP SDK, how do I get the number of people I like for a page with a limited age by the graphics API?

I currently do not use an access token to read pages. Does access token work? And if so, how can I use the access token using the PHP SDK.

+4
source share
2 answers

Limited pages can be read using the api chart, but this requires a user access token. I tried it with an application access token that does not work.

The relevant documentation can be found here: https://developers.facebook.com/docs/reference/api/page/

+2
source

You need to use the page access token. To get a list of your pages with access tokens, use the me / accounts Graph API method.

0
source

Source: https://habr.com/ru/post/1388182/


All Articles