I want my app to be able to post status updates to a specific Page. I’ve got an application set up and retrieved its app ID, and I’m following the the “Page Login” section at the bottom of the Facebook authentication documentation here.
The first stage (user granting the app the manage_page permission) seems to work perfectly. I get redirected to a URL like this:
http://myapp.com/#access_token=ACCESS_TOKEN&expires_in=6483
The docs then say you should access the following:
https://graph.facebook.com/me/accounts?access_token=TOKEN_FROM_ABOVE
replacing TOKEN_FROM_ABOVE with the one returned by the previous request, and this should return “a list of all the Pages the user administers including Page specific access token for each Page”.
However, it doesn’t. All I get is the following JSON response:
{
"error": {
"message": "An unexpected error has occurred. Please retry your request later.",
"type": "OAuthException"
}
}
What am I doing wrong? Could I have set something up incorrectly when creating the application? The error message is less than helpful, so any assistance would be much appreciated.
Just suddenly started working this morning—no idea why.