Posting photo on Facebook with tags using Koala

爷,独闯天下 提交于 2020-01-04 16:56:10

问题


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/


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/14436652/posting-photo-on-facebook-with-tags-using-koala

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!