1

I am going to make a very simple web application. I only need the friend list of the current user and then send a message to a selected user with an image/text. I have looked after gems that wraps the detail of extracting data from Facebook and I found some gems, but they all use the old REST API. First of all: is it bad to use the REST API? If not, is "Facebooker" a good gem? If it is bad I found this Which Ruby gems support the Facebook API? but I don't see much of documentation for the Facebooker2. Are there other options?

Community
  • 1
  • 1
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434

3 Answers3

12

i'm using koala - works with OAuth authentication and Facebook Graph API. Didn't have any serious problems with it, and it's pretty well documented (with examples) on github

schiza
  • 1,900
  • 1
  • 15
  • 18
3

The Ruby Toolbox is a great resource for this kind of question.

In your case, try searching for 'facebook' -- as in https://www.ruby-toolbox.com/search?utf8=%E2%9C%93&q=facebook -- and you'll find that https://github.com/nov/fb_graph is a popular and well-maintained FB gem (at least riight now).

fearless_fool
  • 33,645
  • 23
  • 135
  • 217
0

Since Facebook introduced the Open Graph API I've found it's pretty easy to just roll my own wrapper for the REST calls I need using an http client like HTTParty or RestClient. YMMV.

Chris Mowforth
  • 6,689
  • 2
  • 26
  • 36