nil facebook_session 与 Facebooker gem 和 Rails 2.2.2
使用 Rails 2.2.2 和 Facebooker gem(最新版本)将 FB Connect 集成到我们的网站中。 登录按钮,xd_receiver 文件生成得很好,登录弹出窗口将打开,我可以登录,然后它将执行 onlogin 事件,但 Facebooker 的 facebook_session 方法只是不断返回 nil。 检查会话对象后,来自 FBC 的各种会话 cookie 肯定存在且正确,因此我假设身份验证成功,但 nil facebook_session 方法在开发中造成了僵局。 更糟糕的是,我注意到有关在本地开发时需要代理或以其他方式进行隧道的各种讨论(例如 localhost:3000 不适用于 xd_receiver 内容)。 有任何想法吗?
Integrating FB Connect into our site using Rails 2.2.2 and Facebooker gem (latest version). Login button, xd_receiver files generated fine to the point where the login popup window will open, I can log in, and it will then execute the onlogin event, but Facebooker's facebook_session method just keeps returning nil. Upon inspecting the session object, the various session cookies from FBC are definitely there and correct, so I'm presuming authentication was successful, but the nil facebook_session method is creating an impasse in development. What's worse, I have been noticing various discussions around needing to proxy or otherwise tunnel when developing locally (e.g. localhost:3000 won't work with the xd_receiver stuff). Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
原来我没有调用
set_facebook_session
- 哦!Turns out I wasn't calling
set_facebook_session
- doh!