哪些 Ruby gem 支持 Facebook API?
我有一个使用 Facebook API 的 Rails 应用程序。我见过几种不同的用于与 Facebook 集成的 Ruby gem,但它们看起来已经过时了。
最好自己编写低级调用吗?有没有合适且当前的宝石可用?
这些宝石最近有变化吗?
我正在开始一个新项目——截至 2012 年 9 月我应该使用哪种 gem?
I have a rails application using the Facebook API. I've seen several different Ruby gems for integrating with Facebook, but they look dated.
Is it best to write low-level calls myself? Is there a decent and current gem available?
Have any of these gems changed recently?
I'm beginning a new project -- which gem should I use as of September, 2012?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
Koala Gem 就是您的最佳选择。
这些 7 月份的 Railscast 将告诉您有关在 Ruby 和 Rails 中与社交图谱交互所需了解的所有信息(两者都是付费剧集):
#361:Facebook Graph API:了解如何将 Facebook Graph API 与 Koala gem 结合使用,从 Facebook 获取数据并发布内容通过用户。在这里,我深入探讨了权限、错误处理等内容。
#363:Facebook Open图:本集以上周的集为基础,展示如何通过 Open Graph 协议进一步集成 Facebook。您还将了解如何在本地服务器上建立隧道并将 Facebook 通信移至后台进程。
The Koala Gem is the way to go.
These Railscasts from July will tell you all you need to know about interacting with the Social Graph in Ruby and in Rails (both are paid episodes):
#361: Facebook Graph API: Learn how to use the Facebook Graph API with the Koala gem to fetch data from Facebook and post content through a user. Here I delve into permissions, error handling, and more.
#363: Facebook Open Graph: This episode builds on last week's episodes and shows how to integrate Facebook further through the Open Graph protocol. You will also learn how to tunnel your local server and move Facebook communication into a background process.
最近使用过它,我也建议 Koala。文档非常齐全,API 的更改非常顺利,仍然得到维护,并且 arsduo 是一个非常酷的家伙。
Having used it quite recently, I'd suggest Koala too. Pretty well documented, goes through the changes in api pretty smoothly, still maintained, and arsduo is a pretty cool guy.
根据此链接,
...
According to this link,
...
我建议 mogli 或 考拉。
I would suggest either mogli or koala.
已知拥有活跃用户群的一个是 facebooker2。目前该文档还不够充分,但其邮件列表非常活跃,您很快得到回复。
One known to have an active user base is facebooker2. The documentation is not really sufficient right now but its mailing list is very active, you get responses pretty quickly.
我已经为我的项目深入研究了 Koala ,我发现它写得很好,代码很扎实具有完整的测试覆盖率。主要作者 Alex Koppel 绝对知道自己在做什么,并且关心开发者社区。我需要进行一些改进,这很容易,这要归功于 gem 良好的架构,并且 Alex 帮助将更改合并到主分支中。强烈推荐。
I've dug into the Koala deeply for my project, and I found it to be well written, solid code that has full test coverage. The main author, Alex Koppel, definitely knows what he's doing and he cares about the developer community. I needed to make a few improvements, which was easy thanks to the good architecture of the gem, and Alex was helpful in merging the changes into the master branch. Highly recommended.
Intridea 的 oauth2 支持 Facebook 的 Graph API。
博客文章: http: //intridea.com/2010/4/22/oauth2-gem-just-in-time-for-facebook-graph?blog=company
在 github 上:http://github.com/intridea/oauth2
The oauth2 from Intridea supports Facebook's Graph API.
Blog Post: http://intridea.com/2010/4/22/oauth2-gem-just-in-time-for-facebook-graph?blog=company
On github: http://github.com/intridea/oauth2
Heroku 的 facebook 应用程序的示例源使用的是 mogli,但现在是 koala。它是最好、最伟大的宝石。拥有一个良好的团队 -- 考拉-users
The sample source of Heroku's facebook application was used mogli,but now is koala.It is the best and great gem.Have a good group -- koala-users