Facebook access token expiration how to get extended? perl desktop app

时光怂恿深爱的人放手 提交于 2019-12-08 07:31:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!