Home Refreshing facebook long lived access token without user interaction
Reply: 1

Refreshing facebook long lived access token without user interaction

dev-m Published in 2014-06-11 15:06:08Z

My each user generating a long lived (60 days) access token from my site using graph api.But the problem is when it expires after 60 days, user have to generate it again by coming to my website.Sometimes they forget about token expiration and facebook page feed shows error in their websites.

in another post i mentioned about how i generate token long ago here- http://stackoverflow.com/questions/16962486/extending-valid-expired-60-days-access-token-without-user-interaction

Now how do i automatically refresh the long-lived token from code in their site so that user don't need to get token 2nd time by coming to my token generation website page.

in section Generating Long-Lived User Tokens from Server-Side Long-Lived Tokens of facebook help page - https://developers.facebook.com/docs/facebook-login/access-tokens I see ways to refresh token, but is it the way i want that there will be no user interaction while generating token?? I need example codes as it's hard to understand.

Shubham A.
Shubham A. Reply to 2016-07-21 04:06:50Z

I think so. Try to check this out here:


Look at "Best Practices for maintaining long lived access tokens over time". Guess you may find the answer you need.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.397672 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO