我試圖使用Koela使用下面的代碼來發布照片,但標籤它不是taging用戶發佈的照片用考拉
@graph.put_picture(pic_url,{:message => msg,:tags => [{:id => "xxxxxxx"} ,{:id=>"xxxxxxx"}]})
這裏的Facebook的鏈接的擊打其在PHP http://developers.facebook.com/docs/reference/api/photo/
我試圖使用Koela使用下面的代碼來發布照片,但標籤它不是taging用戶發佈的照片用考拉
@graph.put_picture(pic_url,{:message => msg,:tags => [{:id => "xxxxxxx"} ,{:id=>"xxxxxxx"}]})
這裏的Facebook的鏈接的擊打其在PHP http://developers.facebook.com/docs/reference/api/photo/
有一個在考拉沒有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 的文檔,但我沒有看到它能夠標記...ü可以看看,我認爲泰雷是X和Y座標必須按順序在圖片標記傳遞。
https://github.com/arsduo/koala/blob/master/lib/koala/api/graph_api.rb
X和Y是不是必需的。它們是可選的 –