如何使用 facebooker 插件将 facebook 会话详细信息发送到 Rails 应用程序

发布于 2024-08-16 12:52:23 字数 562 浏览 2 评论 0 原文

我无法使用 fbconnect 将 iPhone 应用程序与我的 Rails 应用程序集成,因为 facebooker 插件无法识别我随 iPhone 的请求一起发送的会话详细信息。 iPhone 的请求如下:

[request setURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:3000/i_phone/get-user-info?fb_sig_session_key=%@",session.sessionKey]]];

在 Rails 应用程序中,我使用

set_facebook_session

facebooker 插件中的

方法。有人可以告诉我我在这里做错了什么以及正确的方法是什么。


我请求 localhost,因为我的 Web 应用程序也托管在本地同一台计算机上。

I am not able to integrate the iPhone application with my rails application both using fbconnect as the session details that i send along with the request from iPhone are not recognized by the facebooker plugin. The request from iPhone is as follows:

[request setURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://localhost:3000/i_phone/get-user-info?fb_sig_session_key=%@",session.sessionKey]]];

and in rails application i use

set_facebook_session

method from facebooker plugin.

Can someone tell me whay am i doing wrong here and what is the right way to do it.


I am requesting localhost as my web application is also hosted on the same machine locally.

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

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

发布评论

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

评论(1

失眠症患者 2024-08-23 12:52:23

您应该查看由 github 上的 ckhsponge 整理的 ConnectiProxy 演示。他发布了 Rails 和 iPhone 应用程序示例,这些应用程序协同工作来处理 iPhone 和 Rails 之间的安全 Facebook Connect 身份验证。

轨道应用程序
http://github.com/ckhsponge/connectiproxy

iPhone 应用程序
http://github.com/ckhsponge/facebook-iphone-sdk

You should check out the ConnectiProxy demo put together by ckhsponge on github. He's posted sample rails and iphone apps that work together to handle secure facebook connect authentication between iphone and rails.

Rails app
http://github.com/ckhsponge/connectiproxy

iPhone app
http://github.com/ckhsponge/facebook-iphone-sdk

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