Search code examples
facebookfacebook-graph-apiaccess-tokenfacebook-access-token

How to deal with the deprecated offline_access?


I have an application which uses offline_access to get permanent access to different pages.

Users can install this application and add it to pages, where they are admins. With an external Backend they can administrate their app and let it post different things (Competitions, ...). So they don't have to stay logged in to Facebook.

Now... there is the problem...

On May 1st the offline_access permission will be removed and the customers have to get a new Token for their Pages every 60 days.

Since now I'm using the offline_access feature for our customers to get non-expiring Page-Tokens.

Is there any workaround for that? Often it's just a Facebook sub-account of the customers to run the app. So it's possible that they don't login for 60+ days = the access token will expire and the application won't work.


Solution

  • redirect them to a link of your app in facebook when their access token expired like this http://apps.facebook.com/xxx/reaccess.php?ref=REF_URL Get new access_token & redirect user back to your app's original page again

    i dont think you be needed to ask them again for permissions