[英]How we get a session key from an access_token
I got an access_token using facebook Graph API. 我使用facebook Graph API获得了一个access_token。 https://graph.facebook.com/me?access_token= ... I want session key. https://graph.facebook.com/me?access_token= ...我想要会话密钥。 is there any method to get session key from access_token?. 有什么方法可以从access_token获取会话密钥吗?
There is no such term infinite session keys. 没有这样的术语无限会话密钥。 But you can ask user to give you offline access extended permission. 但是您可以要求用户为您提供脱机访问的扩展权限。 If user approved the permission, then you can save the session key and later user. 如果用户批准了该权限,则可以保存会话密钥和以后的用户。
If you use new php sdk, then you'll find there is a method $facebook->setSession($session); 如果您使用新的PHP SDK,那么您会发现有一种方法$ facebook-> setSession($ session); You've to pass users's stored session to here. 您必须将用户存储的会话传递到此处。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.