Facebooker 参数为空

发布于 2024-09-15 03:29:32 字数 754 浏览 8 评论 0原文

我正在尝试使用此 http://github.com/kalasjocke/authlogic_facebook_connect 连接 facebooker 和

authlogic遇到问题,所以开始调试 facebooker gem 代码。我意识到没有使用 facebook 登录设置与 facebook 相关的参数。我可以按 Facebook 登录按钮,它会按应有的方式打开 Facebook 窗口,然后我接受/登录 Facebook。然后在 facebooker/rails/controller.secure_with_facebook_params 中!我打印出参数,这显示:

authenticity_token<pulled out token number>actioncreatecontrollerperson_sessions

person_sessions 是我的 user_sessions 的名称。不确定这是否有什么不同......

就是这样。显然这里应该还有其他参数。我检查了 facebooker.yml 以确保我的申请号都正常(尽管说实话,我不明白为什么这很重要,因为我还没有制作 Facebook 应用程序,只是想使用 connect)。

有什么想法吗?如果有人可以帮助我,我将非常感激......任何线索都会有用!

K

I am trying to connect facebooker and authlogic using this http://github.com/kalasjocke/authlogic_facebook_connect

I was having problems so began to debug the facebooker gem code. I realized that no params are getting set using the facebook login that have anything to do with facebook. I can push the facebook login button, it brings up the facebook window as it should and I accept/sign into facebook. Then in facebooker/rails/controller.secure_with_facebook_params! I print out params, this is what shows:

authenticity_token<pulled out token number>actioncreatecontrollerperson_sessions

person_sessions is the name of my user_sessions. Not sure if this makes a difference though...

This is it. Clearly there should be other parameters here. I checked to make sure that my application numbers are all OK with facebooker.yml (although honestly I don't understand why that would matter as I'm not yet making a facebook app, just want to use connect).

Any ideas?? I would be SOOOO thankful if someone could help me out... any clues would be useful!

K

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

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

发布评论

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

评论(2

榕城若虚 2024-09-22 03:29:32

啊,我想我终于明白了!由于我还没有应用程序,因此 facebooker.yml 中的 set_asset_host_to_callback_url 应设置为 false。但是,完成此操作后,您必须关闭浏览器,因为它似乎存储了以前的会话。现在解决我的下一个问题!

Argh I think I finally figured it out! Since I don't have an app yet then set_asset_host_to_callback_url in facebooker.yml should be set to false. However, after this is done, you have to close browser as it seems to store previous session. Now to fix my next problem!

落花随流水 2024-09-22 03:29:32

我也遇到了同样的问题,我的问题是我在 Facebook 本身的应用程序设置页面上设置了一个站点域...当它是 Facebook 设置时,我浪费了大量时间摆弄我的代码和 Rails 应用程序中的设置沿着。最后对 authlogic google group 上的 Alex Neth 表示赞赏。所以我拥有的是

  • 应用程序 ID 150132505999999
  • 应用程序秘密 e7fb8001d80e99999999999999999999
  • 站点 URL http:// localhost:3000
  • 站点域 localhost

我应该拥有的是

  • 应用程序 ID 150132505999999
  • 应用程序秘密 e7fb8001d80e999999999999 99999999
  • 站点 URL http:// localhost:3000
  • 站点域

呃,可能这是一个显而易见的问题,但我希望这可以帮助某人解决问题。
(为了解决该网站上的垃圾邮件问题,我不得不分解该网站的网址)

I had this same issue, my problem was that I had set a Site Domain on my application settings page on Facebook itself... I wasted lots of time fiddling with my code and my settings in my rails app when it was a facebook setting all along. Big up to Alex Neth on the authlogic google group in the end. So what I had was

  • Application ID 150132505999999
  • Application Secret e7fb8001d80e99999999999999999999
  • Site URL http:// localhost:3000
  • Site Domain localhost

and what I should have had was

  • Application ID 150132505999999
  • Application Secret e7fb8001d80e99999999999999999999
  • Site URL http:// localhost:3000
  • Site Domain

duh, probably an obvious one but I hope this helps someone out somewhere.
(I've had to break up the site url there for spam issues on this site)

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