I want to generate an access token which is long lived. I have tried generating token using extended permission manage_page. But then the token used to expire after a few hours.
Also 2 years back there was an issue since offline access was deprecated.
I have read on facebook long lived access token but I cannot figure out how to generate a long lived access token ie probably 60 days.
I know that using Tools in facebook we can generate it but can anyone provide me assistance in generating a long lived access token.
Thanks in Advance.
Currently the long-lived user access_token will be valid for 60 days while the short-lived user access_tokens are currently valid from 1 to 2 hours.
https://developers.facebook.com/docs/roadmap/completed-changes/offline-access-removal/
You can hit the facebook services through the below mentioned URL:
You will need to fill in your App_id, App_Secret and the shortLivedAccessToken. In Return you will get the LONG LIVED Auth token from the Facebook in response which will look something like
CAACY2XUaAeYBAMCzGasdGdsfYTasdjgdER23xxxxxxxxxxxxpH19rZCiOlyhFfqWSWdxxxxxxxxxxxxxxxxxxxxx&expires=5184000
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.