目前 I m目前使用Koala 1.4.0做开张。
I did create an action types : View Object types : Advertisement
What I m currently wish to archieve is : When Click the View button on the page, on the facebook ticker,it will show ,a user is viewing a advertisement.
越:
HTTP 500: Response body: {"error":{"type":"Exception","message":"The action you re trying to publish is invalid because it does not specify any reference objects. At least one of the following properties must be specified: advertisement."}}
我如何努力做到:
graph = Koala::Facebook::API.new(@user.token)
graph.put_connections("#{@user.uid}", "namespace:View" , :object=>"#{url_for(@advertisement)}"
它是在我的 show手里。 我的显示是.html.erb, i 包括所有元数据。 我在Facebook的功能上也利用了koala,使工作顺利,成功地从我的网页上获得元数据,并将其张贴在Facebook上。
使用铁路3.0.9。