Given a Page Access Token, how do I poll Facebook's API to determine whether my app can still post on the Page's timeline? If I was working within the User's context, this would be easy. I would use the User Access Token and call this endpoint:
/me/permissions?access_token={user_access_token}
{
"data":[{
"installed":1,
"email":1,
"publish_stream":1, // Yay! I can still publish to user's Timeline
"bookmarked":1
}]
}
However, the /me/permissions endpoint is not allowed with the Page Access Token:
/me/permissions?access_token={page_access_token}
{
"error":{
"message":"(#3) App must be on whitelist",
"type":"OAuthException",
"code":3
}
}
If I had the User's access token, then I can check for both publish_stream and manage_pages and if the user has granted both of those permissions, then my App can publish to any Page that the user is an administrator of. But unfortunately in my scenario, I don't have the User Access Token. I only have the Page Access Token which is stored for offline use.
Any idea how I can use the Page Access Token to determine if my App can still publish to the Page's Timeline?