Facebook OAuth2中access_token的长度是多少? [英] What is the length of the access_token in Facebook OAuth2?

查看:1374
本文介绍了Facebook OAuth2中access_token的长度是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Google和StackOverflow上搜索找到我的问题的答案,但找不到。



我想将access_token存储到我的数据库对于离线访问,我想确保指定列的正确长度。



我甚至不能发现它只是一个数字或混合数字和字符串。

解决方案

我在Facebook上工作,我可以给出一个确定的答案。 b

请勿在存储上放置访问令牌的最大大小。我们预计随着时间的推移,随着时间的推移,它们将会随着时间的推移而逐渐缩小,并且更改数据的编码方式。



字符。我已经更新了有关该信息的博客文章,并更新了我们的新的访问令牌文档,以包含有关大小的注释:



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



对不起,感到困惑。


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 and I'd like to be sure to specify the correct length of my column.

I can't even find if it's just a number or a mix between number and strings.

解决方案

I work at Facebook and I can give a definitive answer about this.

Please don't put a maximum size on the storage for an access token. We expect that they will both grow and shrink over time as we add and remove data and change how they are encoded.

We did give guidance in one place about it being 255 characters. I've updated the blog post that had that information and updated our new access token docs to include a note about sizes:

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

Sorry for the confusion.

这篇关于Facebook OAuth2中access_token的长度是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆