简体   繁体   English

Facebook 图 API 宝石

[英]Facebook Graph API gem

I wanted to use the Facebook graph API in my rails app.我想在我的 rails 应用程序中使用 Facebook 图 API。

What is the recommended gem to work with the FB graph APIs?使用 FB 图形 API 的推荐 gem 是什么?

Thanks谢谢

This is a well written FB graph support for Ruby - https://github.com/nov/fb_graph这是对 Ruby - https://github.com/nov/fb_graph的编写良好的 FB 图支持

You can use the Koala gem from https://github.com/arsduo/koala您可以使用来自https://github.com/arsduo/koala的 Koala gem

You can query the Graph API directly.您可以直接查询Graph API。 The responses will be in JSON which you can then parse as needed.响应将在 JSON 中,然后您可以根据需要对其进行解析。 See the Facebook Documentation for more details on the specific functions you can call and sample JSON responses.请参阅Facebook 文档以获取有关您可以调用的特定函数的更多详细信息并采样 JSON 响应。

I don't code in Ruby, but this seems like a great start on understanding Ruby on Rails and JSON .我没有在 Ruby 中编码,但这似乎是了解Rails 上的 Ruby 和 JSON的一个很好的开始。

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

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