如何通过put_wall_post与考拉提及朋友

时间:2012-07-10 23:33:13

标签: ruby facebook-graph-api sinatra koala

我提到我的朋友使用Koala,Ruby和Sinatra。 我查看了文档,但没有发现任何相关信息。 记住这一点,我不想向我的朋友发送消息,但我想和他一起提及他。 我的代码:


@graph  = Koala::Facebook::API.new(session[:access_token])
@app  =  @graph.get_object(ENV["FACEBOOK_APP_ID"])

if session[:access_token]
   @graph.put_wall_post("title temp", {
   "name" => "name temp",
   "link" => "http://www.site-temp.com/",
   "description" => "I Know temp Description",
   "picture" => "http://site-temp.com/image.jpg"
   })      
end

我添加了这张照片,以便更好地了解我想要的内容:

enter image description here

所以如果有人知道如何做到这一点,请告诉我。 感谢

1 个答案:

答案 0 :(得分:0)

查看“标签”选项here in the documentation

相关问题