如何在服务器名称之间共享访问令牌? (www 与非 www)
我目前正在通过网站开发一个应用程序,Facebook 返回的令牌只会在确切的 URL 的会话中。换句话说,如果用户点击 site.com 并登录,则令牌仅适用于 site.com。如果用户尝试手动输入 www.site.com,则令牌不适用。
有什么想法吗?
I am currently developing an app via website and the token that Facebook returns back will only be in session for the exact url. In other words, if a user hits site.com and logs in, the token only works for site.com. If the user tries to manually type in www.site.com, the token does not apply.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
access_token 不绑定到域。您甚至可以在此处使用有效的用户令牌:https://developers.facebook.com/tools/explorer 尝试一下。您甚至可以使用它通过桌面应用程序在图表中执行操作。
您正在使用的应用程序可能正在设置会话 cookie,但它可能与域绑定,这可能是问题的根源。
The access_token is not tied to a domain. You can even use a valid user token here: https://developers.facebook.com/tools/explorer Give it a try. You can even use it to do things in the graph via a desktop application too.
The app you're using might be setting a session cookie, and that might be tied to a domain though, and that may be the source of your issues.