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

风流意气都作罢 提交于 2020-01-02 03:39:14

问题


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.


回答1:


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 => ''
  )


来源:https://stackoverflow.com/questions/4108932/whats-the-easiest-way-to-post-on-my-facebook-wall-through-my-ruby-on-rails-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!