Handling an expired long lived access token, server side - facebook -



Handling an expired long lived access token, server side - facebook -

in web app, need post on users facebook feed while offline. store long lived access tokens users. these tokens expire after 60 days.

the fb docs mention necessary redirect users login flow renewed access token.

i thinking of checking facebook session validity of user, whenever login app , give them alternative of re-authenticating facebook in case access token has expired. involve user interaction if user not logged in facebook account.

are there alternative solutions at. also, how sites quora manage posting user's wall, without needing re-authenticate facebook after every 60 days.

ps - using latest facebook php sdk.

simple answer: not possible extend access token on server. create whole concept void.

earlier there permission called "offline access", changed extended token maximum 60 days avoid things. should never post on wall of user without authorization, every single post. not allowed autofill/prefill message parameter anyway (see facebook terms), must 100% user generated.

about quora: don´t know doing, assume refresh access token whenever user goes website.

facebook facebook-graph-api oauth-2.0 facebook-php-sdk facebook-access-token

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -