问题
I made a Perl script for Facebook but it doesn't work after a period of time, or if I log out. I think this is due to the access token expiring.
Could somebody help me to extend the expiration of the token?
回答1:
First, look here
and you can find something similar:
https://graph.facebook.com/oauth/access_token?
client_id=APP_ID&
client_secret=APP_SECRET&
grant_type=fb_exchange_token&
fb_exchange_token=EXISTING_ACCESS_TOKEN
it will return token.
But! be sure, that you call this method twice. First time it return 2h expiring
token.
Not sure now what they do with this.
来源:https://stackoverflow.com/questions/14967031/facebook-access-token-expiration-how-to-get-extended-perl-desktop-app