I am writing an Android app where, among other things, the spec calls for all the posts on a specific Facebook page to be available in a ListView
. So far this has worked fine, but today I discovered that the previous developer had used a user access_token to get access to the Open Graph API to get at this page. I discovered this because the access_token expired.
Since then I have followed the instructions in
https://developers.facebook.com/docs/opengraph/howtos/publishing-with-app-token/ https://developers.facebook.com/docs/howtos/login/login-as-app/
to get an app access token; however, when I try to access the page feed like this:
https://graph.facebook.com/[PAGE]/posts?access_token=[APP_ID]|[OTHER_DATA]
I get:
{
error: {
message: "An access token is required to request this resource.",
type: "OAuthException",
code: 104
}
}
however, chopping the access token around in any way results in
{
error: {
message: "Invalid OAuth access token signature.",
type: "OAuthException",
code: 190
}
}
so clearly Facebook recognizes the access token but refuses it. I noticed in the first Facebook developers link above that
Note that the app access token is for publishing purposes permitted by the
publish_actions
permission. You will be unable to retrieve information about the status update post with the given ID using the app access token. Instead, you should use a user access token for such purposes.
What I would like to know is, what actions are possible with an app token, and what actions are impossible with one?