What is the length of the access_token in Facebook OAuth2?

后端 未结 7 1326
不知归路
不知归路 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:28

    Facebook access token can be longer than 255 characters. I had a lot of errors like ActiveRecord::StatementInvalid: PG::StringDataRightTruncation: ERROR: value too long for type character varying(255) where the value was facebook access token. Do not use string type column because its length is limited. You can use text type column to store tokens.

提交回复
热议问题