facebooker iframe 的重定向错误和递归登录屏幕/身份验证屏幕问题

发布于 2024-09-03 09:24:23 字数 515 浏览 3 评论 0原文

我正在使用 http://github.com/mmangino/facebooker 中的 facebooker gem 来开发 Rails 2 Facebook 应用程序(iframe)。我想知道这是否是 facebooker 的错误:

当我

ensure_application_is_installed_by_facebook_user

在应用程序控制器中使用时,iframe 会在无限循环中渲染。我发现在vendor/plugins/facebooker/lib/facebooker/rails/controller.rb第63行request_is_facebook_iframe?从未输入我的 iframe 应用程序。似乎 params["fb_sig_in_iframe"] 始终未设置。

这是 facebooker 的问题还是我错过了什么?

i am using the facebooker gem from http://github.com/mmangino/facebooker for developing a rails 2 facebook application (iframe). i am wondering if this is a bug from facebooker:

when i am using

ensure_application_is_installed_by_facebook_user

in the application controller, the iframe gets rendered in an infinite loop. i found out that in vendor/plugins/facebooker/lib/facebooker/rails/controller.rb line 63 the request_is_facebook_iframe? is never entered for my iframe app. it seems that params["fb_sig_in_iframe"] is always not set.

is this a facebooker problem or did i miss something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

谜兔 2024-09-10 09:24:23

不知道您是否得到了答案,但为了避免无限帧循环,您应该使用

  ensure_authenticated_to_facebook

而不是

ensure_application_is_installed_by_facebook_user

这里有一个关于设置 iframe facebook 应用程序的很好的教程:

使用 Ruby on Rails & 创建 Facebook (iFrame) 应用程序Facebook 用户

希望有帮助!

don't know if you got an answer but to avoid the infinite frame loop you should use

  ensure_authenticated_to_facebook

instead of

ensure_application_is_installed_by_facebook_user

There is a good tutorial on setting up a iframe facebook app here:

Creating a Facebook (iFrame) app using Ruby on Rails & Facebooker

Hope that helps!

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