Action Links in Feed Story

19 views
Skip to first unread message

Pierre Valade

unread,
Oct 15, 2010, 6:01:53 PM10/15/10
to rest-graph
Hi,

I can't make actions links to work using rest-graph.

I'm trying to do :

rest_graph.post('me/feed', :message => "message", :picture => "http://
www.dnac.org/images/Paris_Effel.jpg", :name => "name", :caption =>
"caption", :description => "description", :link => "http://google.com/
paris", :actions => [{"name" => "Action!", "link" => "http://
apps.facebook.com/singlesapp-dev"}])

But all I see is a "A" next to the like/comment feature on Facebook.

Thanks

- Pierre

Lin Jen-Shin (aka godfat 真常)

unread,
Oct 18, 2010, 4:07:45 AM10/18/10
to rest-...@googlegroups.com
On Sat, Oct 16, 2010 at 6:01 AM, Pierre Valade <pie...@valade.info> wrote:
> Hi,
>
> I can't make actions links to work using rest-graph.
[...]

Sorry for the late response.
I think to make "actions" work, according to the document, this line:
-F 'actions={"name": "View on Zombo", "link": "http://www.zombo.com"} \
You'll need to pass an JSON for "actions", not a ruby array of hash.

So you might use JSON.dump or Yajl::Encoder.encode on the
actions argument according the JSON library you're using.

http://developers.facebook.com/docs/reference/api/post

cheers,

Reply all
Reply to author
Forward
0 new messages