What is the length of the access_token in Facebook OAuth2?

后端 未结 7 1250
不知归路
不知归路 2020-12-02 12:49

I searched on Google and StackOverflow to find a answer to my question but I can\'t find one.

I\'d like to store the access_token to my database for offline access a

相关标签:
7条回答
  • 2020-12-02 13:35

    With Facebook's recent move to encrypted access tokens, the length of the access token can be up to 255 characters. If you're storing the access token in your database, the column should be able to accommodate at least varchar(255). Here's an excerpt from Facebook's Developer blog from October 4, 2011:

    "With the Encrypted Access Token migration enabled, the format of the access token has changed. The new access token format is completely opaque and you should not take any dependency on the format in your code. A varchar(255) field will be sufficient to store the new tokens."

    Full blog post here: https://developers.facebook.com/blog/post/572

    0 讨论(0)
提交回复
热议问题