开发者

Am i missing how the graph api works

I am using this gem, which is just a wrapper for the facebook graph API. I trying trying to post something to the logged in users facebook wall. This task seems easy enough but i am having these problems

graph = HyperGraph.new("some tok开发者_JAVA百科en").get('me')
=> {:last_name=>"Jones", :updated_time=>Fri Aug 06 22:27:03 -0400 2010, :email=>"jones11@gmail.com", :locale=>"en_US", :link=>"http://www.facebook.com/matt.jones", :verified=>true, :first_name=>"Matt", :timezone=>-4, :name=>"Matt Jones", :birthday=>"04/22/1985", :id=>503888340}
graph.object('503888340').post(:comments, :message => 'durian is disgustingly delicious')

FacebookError: OAuthException - (#100) Invalid fbid.

How do i post a message to my wall


try replacing :comments with :feed

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜