How to obtain a Page token with Graph API
Hello.
When I click on the ‘user or page’ field in the API Graph explorer and choose ‘Obtain a page access token’, a popup appears and asks me to reconnect my account to that of the application created: Reconnect user_name to api_name. I confirm and the page refreshes and constantly displays ‘user token’.
I've checked my settings in business manager, I'm one of the page administrators and the only one to manage the api_name application. The API Graph debugger always tells me that I'm ‘USER’ and not ‘PAGE’ for the access token.
My aim is to be able to display a custom widget on a website showing, among other things, the latest Facebook post with a link to that post.
Is this a temporary bug, or do I need to validate other authorisations on other pages?
As I haven't managed to use the Javascript SDK with Wordpress, I'm using a curl call with php. For the moment I can access this data (which corresponds to the USER toke): Page name : About,Category,Number of fans,Number of subscribers,Page URL,Phone,Website,Profile photo