什么是最简单的方法,通过我的Ruby on Rails应用程序发布在我的Facebook墙上? [英] What's the easiest way, to post on my Facebook Wall through my Ruby on Rails App?
问题描述
上周,我整合了我的小轨道应用程序的twitter。如果我在我的rails应用程序中创建一个新的记录,它将被发布在twitter上。
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.
但是我怎么用Facebook呢? Twitter真的很简单(感谢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.
提前感谢
cheers tabaluga
Thanks in advance cheers tabaluga
p.s。哦,我忘了提,我没有一个个人的Facebook帐号。 Facebook Wall是一个公司网站。
p.s. Oh, I forgot to mention, I do not have a personal facebook account. The Facebook Wall is a Company site.
推荐答案
我正在使用 fb_graph ,我真的很喜欢,很容易使用。
要发布到墙上,您只需执行以下操作:
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 => ''
)
这篇关于什么是最简单的方法,通过我的Ruby on Rails应用程序发布在我的Facebook墙上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!