Reputation: 65175
The Facebook OAuth Access Tokens Expire after a specified period, but what about Facebook OAuth authorization code? does it expire? (it does not say?)
Reference:
https://developers.facebook.com/docs/reference/dialogs/oauth/
https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-31#page-8
Upvotes: 0
Views: 2260
Reputation: 22603
The authorization code has an expiration.
From the docs : Now that your app has authorization from the user and the code parameter stored as a variable, it should immediately exchange it for a User access token that can then be used to make API requests
The following post also mentions a facebook update informing about authorization code expiration :
OAuthException: This authorization code has been used - Facebook
Upvotes: 1