Sharing content to facebook wall.

75 views
Skip to first unread message

mostofa monsur

unread,
Nov 13, 2013, 7:02:45 AM11/13/13
to koala...@googlegroups.com
Hi guys, 
I am rails newbee.I have a article model.I want to share those article with facebook wall.I have no idea how to do that using koala.
Will you please help me ?
thanks.

Folivi Fofo

unread,
Nov 13, 2013, 10:41:02 AM11/13/13
to koala...@googlegroups.com
Hi

I'm not an expert but I have one solution worth trying

Let's suppose your article has name & description fields you can do something like


your_api_variable.put_wall_post(article.name, {}, group_or_people_id)

you can also create some attachment (the empty hash param on the previous line) to your post by doing something like:

attachment = {
        "name" => article.name,
        "link" => link_to_article(or website or whatever you like),
        "caption" => some_caption_text,
        "description" => article.description,
        "picture" => article.pic
 }

you end up with a call this call: your_api_variable.put_wall_post(article.name, attachment, group_or_people_id)

hope this helps

Reply all
Reply to author
Forward
0 new messages