facebooker2 错误
我在 Ruby on Rails 2.3.8 上使用 facebooker2 gem。
这非常有效。但是现在当我尝试与用户连接时会抛出此错误。
Mogli::Client::OAuthException (Error validating access token: The session is invalid because the user logged out.):
我不明白为什么会发生这种情况。
api key
也是 api id
吗?
预先感谢
更新:
现在我可以看到问题了。会话/cookie 存在错误。如果我删除 cookie,我可以正确连接。但是,如果我断开连接然后重新连接,则会抛出相同的错误,
我使用 fb_logout 帮助程序。但是我怎样才能删除 Facebook 会话呢?我怎样才能防止/捕获/挽救这个错误?
再次提前致谢。
I am using facebooker2 gem on Ruby on Rails 2.3.8.
This works very well. However now when i try connect with a user this error is thrown.
Mogli::Client::OAuthException (Error validating access token: The session is invalid because the user logged out.):
I don´t understand why this occurs.
is the api key
the api id
as well?
Thanks in advance
UPDATE:
Now I can see the problem. There is a bug with sessions/cookies. If I delete the cookies I can connect correctly. However if I disconnect and then reconnect the same error is thrown
I use fb_logout helper. However how can I delete the Facebook sessions? how can I prevent/catch/rescue this error?
Thanks in advance again.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论