什么是添加到 Rails 中的时间线实现的最佳可用插件。我已经实现了获取朋友,我有 fb 令牌等。我为此使用了https://github.com/appoxy/mini_fb gem。
我想实现一个功能,即add_to_timeline。像 pintrest 这样的东西。看一下屏幕截图。
什么是最好的宝石/指南。
PS:我不是要代码,有例子就好,即使是gem或插件的指导也足够了:)
什么是添加到 Rails 中的时间线实现的最佳可用插件。我已经实现了获取朋友,我有 fb 令牌等。我为此使用了https://github.com/appoxy/mini_fb gem。
我想实现一个功能,即add_to_timeline。像 pintrest 这样的东西。看一下屏幕截图。
什么是最好的宝石/指南。
PS:我不是要代码,有例子就好,即使是gem或插件的指导也足够了:)
这是 facebook 开放图。您必须定义动作和对象。阅读: https ://developers.facebook.com/docs/opengraph/keyconcepts/
https://github.com/nov/fb_graph
app = FbGraph::Application.new(APP_ID)
me = FbGraph::User.me(ACCESS_TOKEN)
# Fetch activities
actions = me.og_actions app.og_action(:custom_action)
# Publish an activity
action = me.og_action!(
app.og_action(:custom_action),
:custom_object => 'http://samples.ogp.me/264755040233381')
https://github.com/nov/fb_graph/wiki/OpenGraph
正如肯尼所说,您必须在 Facebook 上创建自己的自定义操作和对象。