[英]what is the validity of the facebook javascript sdk access token that is stored in the cookie
If I use the facebook javascript and xfbml to get a user to login to my app and grant me offline permissions. 如果我使用facebook javascript和xfbml来吸引用户登录我的应用并授予我离线权限。
Can I then at the server 然后可以在服务器上吗
or is this access token valid only during the active session "even though I've requested and obtained user permission for offline use" 还是仅在活动会话期间此访问令牌有效?“即使我已请求并获得用户允许离线使用”
Yes, you can do everything you stated and user the access token indefinitely if you request "offline_access" from the user. 是的,如果您请求用户“ offline_access”,则可以执行您声明的所有操作并无限期地使用访问令牌。 If you don't request offline_access the access token expires after a few hours. 如果您不请求offline_access,则访问令牌将在几个小时后过期。 The only reason the access token will expire is if the user removes your application or removes the offline access permission from your application. 访问令牌到期的唯一原因是用户删除您的应用程序或从您的应用程序中删除脱机访问权限。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.