nil facebook_session 与 Facebooker gem 和 Rails 2.2.2

发布于 2024-07-30 14:40:53 字数 346 浏览 3 评论 0原文

使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怪我闹别瞎闹 2024-08-06 14:40:53

原来我没有调用 set_facebook_session - 哦!

Turns out I wasn't calling set_facebook_session - doh!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文