By default, a Facebook access token expires after two hours. You can extend the token to be valid for sixty days.
Prerequisites
Before generating the long-term access token, you have to get your App ID, App secret, and your App access token.
Procedure
-
Copy the following URL to a
.txt file:
https://graph.facebook.com/oauth/access_token?client_id=your_app_id&client_secret=your_app_secret&grant_type=fb_exchange_token&fb_exchange_token=your_regular_access_token
-
Change the
your_app_id,
your_app_secret, and
your_regular_access_token to your own App ID, App secret, and your App access token.
-
Copy the URL to your browser and press Enter.
Result
The long-term access token is displayed in the browser.
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.