0

Whats the best available plugin for add to timeline implementations in rails. I have already implemented fetching friends, I have fb token etc. I used https://github.com/appoxy/mini_fb gem for that.

I want to implement a functionality ie add_to_timeline. Something like pintrest has. Take a look on screenshot.

Whats the best possible Gem/guide for this.

enter image description here

PS: I am not asking for the code, an example is good to have, even guidance for the gem or plugin is even enough :)

Mohit Jain
  • 43,139
  • 57
  • 169
  • 274

2 Answers2

0

This is facebook open graph. You'll have to define actions and objects. Read this: https://developers.facebook.com/docs/opengraph/keyconcepts/

user626035
  • 191
  • 4
0

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

And as kenny said, you'll have to create your own custom actions and objects on Facebook.

Robin
  • 21,667
  • 10
  • 62
  • 85