简体   繁体   English

哪些Ruby宝石支持Facebook API?

[英]Which Ruby gems support the Facebook API?

I have a rails application using the Facebook API. 我有一个使用Facebook API的rails应用程序。 I've seen several different Ruby gems for integrating with Facebook, but they look dated. 我已经看到几种不同的Ruby宝石可以与Facebook集成,但它们看起来过时了。

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? 我正在开始一个新项目 - 我应该在2012年9月使用哪种宝石?

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): 这些来自7月的Railscasts将告诉您在Ruby和Rails中与Social Graph交互所需的所有内容(两者都是付费剧集):

#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. #361:Facebook Graph API了解如何使用带有Koala gem的Facebook Graph API从Facebook获取数据并通过用户发布内容。 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. #363:Facebook Open Graph这一集以上周的剧集为基础,展示了如何通过Open Graph协议进一步整合Facebook。 You will also learn how to tunnel your local server and move Facebook communication into a background process. 您还将学习如何隧道传输本地服务器并将Facebook通信转移到后台进程。

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. 非常好的文档,经过api的变化非常顺利,仍然保持,而arsduo是一个非常酷的家伙。

According to this link , 根据这个链接

With Facebook's Graph API and the creation of the Open Graph protocol, it is now easier then ever before to read and write data from and to the “social graph”. 借助Facebook的Graph API和Open Graph协议的创建,现在可以更轻松地从“社交图”读取和写入数据。

... ...

The following are proven to work with Ruby 1.9.x and Rails 3.0.0. 以下证明适用于Ruby 1.9.x和Rails 3.0.0。

Gems 宝石

Cardinal Blue's rest-graph 红衣主教的休息图
miniFB miniFB
FBGraph FBGraph
Koala 考拉
Mogli Mogli

Plugins - Facebooker2 插件 - Facebooker2

Middlewares 中间件
OmniAuth OmniAuth
rack-facebook 机架的Facebook

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. 主要作者Alex Koppel肯定知道他在做什么,他关心开发者社区。 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. 我需要做一些改进,这很容易归功于宝石的良好架构,而Alex有助于将更改合并到主分支中。 Highly recommended. 强烈推荐。

One known to have an active user base is facebooker2 . 已知拥有活跃用户群的人是facebooker2 The documentation is not really sufficient right now but its mailing list is very active, you get responses pretty quickly. 文档目前还不够,但它的邮件列表非常活跃,您可以很快得到响应。

我会建议mogli考拉

Heroku的facebook应用程序的示例源使用mogli ,但现在是koala。它是最好的和伟大的gem.Have一个好的组 - 考拉用户

The oauth2 from Intridea supports Facebook's Graph API. 来自Intridea的oauth2支持Facebook的Graph API。

Blog Post: http://intridea.com/2010/4/22/oauth2-gem-just-in-time-for-facebook-graph?blog=company 博客文章: http//intridea.com/2010/4/22/oauth2-gem-just-in-time-for-facebook-graph? blog = company

On github: http://github.com/intridea/oauth2 在github上: http//github.com/intridea/oauth2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM