RPXnow Facebook Connect - 支持的使用和级别?
我正在为 Rails 应用程序使用 RPXnow.com 身份验证解决方案,现在想要使用 Facebook Connect 和客户端 API 来开发 Facebook 集成功能。 我从 RPXnow 文档中不清楚的是他们的解决方案提供的集成级别。 当用户使用其 FB 信用通过 rpx 连接时,他们现在是否在使用 Facebook Connect? 我可以从我的应用程序调用客户端 api 吗? 我是否需要使用 RPX api 来访问 FB 客户端 API?
任何有使用这两种方法的经验的人都可以在这里阐明,非常感谢。
I am using RPXnow.com authentication solution for a rails app and am now at the point of wanting to develop Facebook integration features using Facebook Connect and the client api. What I am unclear on from RPXnow docs is the level of integration their solution provides. When a user connects via rpx using their FB creds, are they now using Facebook Connect? Can I make calls to the client api from my app? Do I need to use the RPX api to access the FB client APIs?
Anyone with experience using both who can shed light here, much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
德纽曼,
好问题。 Facebook Connect 只是一个构建在 Facebook 平台 API 之上的 JavaScript 层。 RPX 使用平台 API 来验证用户身份,在用户登录后,您可以安全地使用本机 Facebook Connect javascript 在您的网站上实现 FB 特定功能,例如将活动发布回动态消息。 您只需在 Facebook 开发者网站上设置连接 URL 并放入 Facebook Connect javascript,然后开始实施。 通过 RPX 进行身份验证后,用户将已经批准并“连接”到您的网站,您将可以直接访问 Connect 的各种功能。
此外,如果您有 RPX Plus/Pro 帐户,您可以进行简单的 RPX API 调用来设置用户状态并在 Facebook(和 Twitter/MySpace)上发布活动。
布赖恩·埃林
RPX产品经理
dnewman,
Great question. Facebook Connect is simply a javascript layer built on top of the Facebook Platform APIs. RPX uses the platform APIs to authenticate the user, and after they have signed in, you may safely use the native Facebook Connect javascript to implement FB specific features on your site like posting activity back to the News Feed. You just need to set your connect URL on the facebook developer site and drop in the Facebook Connect javascript and then start implementing. After authenticating via RPX, the user will already have approved and "connected" to your website, and you'll have access to the breadth of Connect directly.
Also, if you have an RPX Plus/Pro account you can make simple RPX API calls to set a user's status and post activity on Facebook (and Twitter/MySpace).
Brian Ellin
RPX Product Manager
连接 RPXNow (JanRain) 单点登录后,您可以关注 Facebook文档。 服务器端个性化示例使用 PHP,但任何语言的想法都是相同的。
需要注意的关键点是,本例中引用的 $cookie['oauth_access_token'] 需要是 RPXNow 登录 API 响应中 JSON 字段返回的字符串
['accessCredentials']['accessToken']
提示:从 RPXNow 仪表板中,查看“资源”下的“测试登录小部件”页面,以查看该令牌在响应中的位置。
最初,我认为在 Facebook 应用程序设置中将基本域设置为 rpxnow.com 会阻碍这一点,但事实并非如此。 效果很好。
Once you've hooked up RPXNow (JanRain) single sign-on, you can follow the Facebook documentation. The Server-side Personalization example is in PHP but the idea is the same in any language.
The key point to note is that the $cookie['oauth_access_token'] referenced in this example needs to be the string returned by the RPXNow sign-on API response in the JSON field
['accessCredentials']['accessToken']
Hint: from your RPXNow dashboard, check out the Test Sign-In Widget page under Resources to see where that token is in the response.
Initially I thought this would be hampered by having your Base Domain set to rpxnow.com in your Facebook Application settings, but this is not the case. It works fine.