使用考拉在Facebook上发布带有标签的照片

我正在尝试使用以下代码使用Koela发布照片,但它没有对用户进行分类

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

这是facebook链接,但它是用PHP http://developers.facebook.com/docs/reference/api/photo/

Koala中没有put_tag函数,因此您必须使用更通用的put_connections函数:

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

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

这是put_picture的文档,但我没看到它能够标记…你可以看看,我认为tere是一个x和y坐标必须传递,以便在图片中标记。

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