Reputation: 722
I was wondering if anyone could clarify that all Facebook tokens are time bound and you can't actually have a token lasting more than 90 days without human interaction?
I have a simple page post facebook feed on a website, I now need to manually refresh the access token & update the request every 90 days? If I want this lovely facebook feed on a few of my client's websites I'm gonna have to make sure they don't go on holiday else their feed will go offline?
Upvotes: 1
Views: 680
Reputation: 73984
Extended Page Tokens do not expire: https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension
Make sure not to use any Token hardcoded in clientside code. Tokens always have to be kept secret. Also, cache API results on the server, so you do not have to hit the API for every user. Else, you may run into API limits.
You can also use webhooks to get realtime updates of your Page: https://developers.facebook.com/docs/graph-api/webhooks/
Edit: Extended Page Tokens do expire now, after 60 days.
Upvotes: 2