Do Facebook Oauth 2.0 Access Tokens Expire?

后端 未结 13 1188
Happy的楠姐
Happy的楠姐 2020-11-27 09:32

I am playing around with the Oauth 2.0 authorization in Facebook and was wondering if the access tokens Facebook passes out ever expire. If so, is there a way to request a l

13条回答
  •  佛祖请我去吃肉
    2020-11-27 10:29

    Hit this to exchange a short living access token for a long living/non expiring(pages) one:

    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 
    

提交回复
热议问题