Find Expire Time for an access token

前端 未结 6 1896
星月不相逢
星月不相逢 2021-02-01 19:47

Is there any way to use the graph api to find out when a page access token, or application token will expire?

6条回答
  •  深忆病人
    2021-02-01 20:37

    https://developers.facebook.com/docs/facebook-login/access-tokens/expiration-and-extension

    From the page above:

    Access tokens on the web often have a lifetime of about two hours, but will automatically be refreshed when required. If you want to use access tokens for longer-lived web apps, especially server side, you need to generate a long-lived token. A long-lived token generally lasts about 60 days.

提交回复
热议问题