AtaurRehman Asad
AtaurRehman Asad

Reputation: 173

Posting photo on Facebook with tags using Koala

I'm trying to post a photo using Koela using the following code but its not taging the users

@graph.put_picture(pic_url,{:message => msg,:tags => [{:id => "xxxxxxx"} ,{:id=>"xxxxxxx"}]})

Here's the facebook link buts its in PHP http://developers.facebook.com/docs/reference/api/photo/

Upvotes: 2

Views: 542

Answers (2)

Duan Tingliang
Duan Tingliang

Reputation: 46

There is no put_tag function in Koala so you have to use the more generic put_connections function:

@graph.put_connections(you_image_id, 'tags', {"to" => uid})

https://github.com/arsduo/koala/blob/master/lib/koala/api/graph_api.rb#L144

Upvotes: 3

Nich
Nich

Reputation: 1102

this is the documentation for put_picture but i dont see it able to tag...u can take a look ,and i think tere is an x and y coordinates have to be passed in order to tag in the picture.

https://github.com/arsduo/koala/blob/master/lib/koala/api/graph_api.rb

Upvotes: 0

Related Questions