哪些 Ruby gem 支持 Facebook API?

发布于 2024-09-25 22:37:42 字数 193 浏览 3 评论 0原文

我有一个使用 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 技术交流群。

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

发布评论

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

评论(8

笑,眼淚并存 2024-10-02 22:37:42

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.

清君侧 2024-10-02 22:37:42

最近使用过它,我也建议 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.

黯淡〆 2024-10-02 22:37:42

根据此链接

随着 Facebook 的 Graph API 和 Open Graph 协议的创建,现在从“社交图”读取数据以及向“社交图”写入数据变得比以往任何时候都更加容易。

...

以下内容已被证明可与 Ruby 1.9.x 和 Rails 3.0.0 配合使用。

宝石

Cardinal Blue 的休息图
miniFB
FBGraph
考拉
Mogli

插件 - Facebooker2

中间件
OmniAuth
rack-facebook

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”.

...

The following are proven to work with Ruby 1.9.x and Rails 3.0.0.

Gems

Cardinal Blue’s rest-graph
miniFB
FBGraph
Koala
Mogli

Plugins - Facebooker2

Middlewares
OmniAuth
rack-facebook

夏尔 2024-10-02 22:37:42

我建议 mogli考拉

I would suggest either mogli or koala.

笑忘罢 2024-10-02 22:37:42

已知拥有活跃用户群的一个是 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.

2024-10-02 22:37:42

我已经为我的项目深入研究了 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.

兮子 2024-10-02 22:37:42

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

坠似风落 2024-10-02 22:37:42

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

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