Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the easiest way, to post on my Facebook Wall through my Ruby on Rails App?

last week, I integrated successfully twitter with my "small" rails app. If I create a new record in my rails app it will be posted on twitter.

But how Do I do this with facebook? Twitter was really easy (thanks to the Twitter gem) Can you recommend a gem? A link to an example app would also be nice.

Thanks in advance cheers tabaluga

p.s. Oh, I forgot to mention, I do not have a personal facebook account. The Facebook Wall is a Company site.

like image 867
tabaluga Avatar asked Nov 05 '10 18:11

tabaluga


1 Answers

I am using fb_graph and I really like it, very easy to use. To post to a Wall you simply do:

 me = FbGraph::User.me(access_token)
 me.feed!(
    :message => '',
    :link => '',
    :name => '',
    :description => ''
  )
like image 176
Jochen Avatar answered Nov 09 '22 07:11

Jochen