Rails facebooker 与 facebook js sdk

发布于 2024-09-13 13:38:11 字数 460 浏览 1 评论 0原文

我正在探索 facebook 与我的 Rails 应用程序的集成,并想知道 Rails 应用程序的最佳实践是什么。

1 - js sdk 是更好的路线还是 facebooker gem?我想允许用户通过 facebook 登录,将内容/链接发布到他们的墙上,查看应用程序中的朋友活动,邀请 Facebook 朋友,从 Rails 应用程序等。

2 - 这些方法中的任何一个都可以在本地测试吗?或者我需要托管互联网应用程序?

3 - 我已经通过 authlogic-rpx 插件使用 janrain/rpx-now 进行 fb 登录身份验证。这会与 facebooker gem 或 fb js sdk 有冲突吗?并且..为了使用fb插件/js sdk/facebooker等,是否需要通过这些方法进行身份验证,或者我可以通过rpx/janrain进行身份验证,但从facebooker gem/js sdk等访问提要/朋友活动等?

谢谢

I am exploring facebook integration with my rails app and wondering what is the best practice for rails applications.

1 - Is js sdk the better route or the facebooker gem? I would like to allow users to login via facebook, post content/links to their walls, see friend activity in the application, invite fb friends, from the rails app etc.

2 - Can either of these methods be tested locally or do I need a hosted internet app?

3 - I already do fb authentication for login using janrain/rpx-now via authlogic-rpx plugin. Will this have any conflict with the facebooker gem or the fb js sdk. And..in order to use the fb pluging/js sdk/facebooker etc, is it required to do the authentication via those methods or can I authenticate via rpx/janrain but access feeds/friend activity etc from the facebooker gem/js sdk etc?

Thanks

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

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

发布评论

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

评论(1

甜味超标? 2024-09-20 13:38:11

1)我经常同时使用两者。我发现使用服务器端 SDK 可以更轻松地完成大部分工作,但我们偶尔也会使用 js SDK。我会看看 Facebooker2,它比原来的 Facebooker 简单得多

2) 两者都可以在本地使用,但您确实需要互联网连接才能与 Facebook 对话。

3) 如果您获得有效的访问令牌,您可以将 Facebooker 与 RPX 一起使用。您需要更改进行客户端设置的方式。

1) I often use both. I find most of the work to be easier using the server side SDK, but we do occasionally use the js one as well. I would check out Facebooker2, it's much more simple than the original Facebooker

2) Both can be used locally, but you do need internet connectivity to talk to Facebook.

3) If you get a valid access token, you can use Facebooker with the RPX stuff. You would need to change the way you do the client setup.

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