Reputation: 4245
First of all, before this is marked as a duplicate. I have seen question similar to this one. But none of them seem up to date with the new facebook developer layout.
I have followed the instructions for this.
Which has proved very successful. Apart from the fact that ones page access token
changes rapidly(??!).
So I then went on to learn about prolonging the lifespan of the page access token
. Which I found nothing of use!
I have looked at this method where you insert your app-id, app-secret and the short lived token:
https://graph.facebook.com/oauth/access_token&grant_type=fb_exchange_token&client_id={app-id}&client_secret={app-secret}&fb_exchange_token={short-lived-token}
but it just returns:
{
"error": {
"message": "Error validating application. Invalid application ID.",
"type": "OAuthException",
"code": 101
}
}
Does anybody have an up to date methods?
Upvotes: 0
Views: 50
Reputation: 31479
To get non-expiring Page Access Tokens, have a look at How to fetch data from my facebook page without token expired?
Apparently this only work if one uses a v1.0 to get the Access Tokens, with v2.0 the lifespan is 60 days.
Upvotes: 1