Find Expire Time for an access token

前端 未结 6 2082
星月不相逢
星月不相逢 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:48

    I would like to repeat this question for the current version of the API since I've come to a situation when Facebook doc clearly does not describe what is happening:

    • no expiry dates when requesting a new long-lived token with fb_exchange_token
    • no expiry dates when requesting debug_token information (expires_at = 0)
    • it does reply with an expiration date when redirecting the user to the auth page for the first time, but that does not help as I cannot extract the long-lived expiration date nor it will reply with this information for the second time

    The debug tool here: https://developers.facebook.com/tools/debug/accesstoken says "Expires: Never".

提交回复
热议问题