Facebook has a tool that generates short-lived access tokens for all your apps, but it's not as easy as you might think to get a long-lived token manually. This bookmarklet bridges that gap.
- Visit the Bookmarklet Installation Page and drag the link there to the Bookmarks bar in your browser.
- Have your Facebook App ID and App Secret handy.
- Login to the Facebook Access Token Tool in your browser to see short-lived tokens for all your apps.
- Select/highlight the short-lived token you want to convert into a long-lived token. (Double-clicking on the token should select it.)
- Click the bookmarklet and specify these values (which you should have handy) in the two prompts:
- App ID
- App Secret
- The browser will load a Facebook response with the long-lived token included in it. It will be the long string after the
access_token=
and before the&expires
.