Method for returning shares

4 views
Skip to first unread message

andrew...@gmail.com

unread,
Sep 21, 2013, 5:50:05 PM9/21/13
to fb_g...@googlegroups.com
I am using the following to grab posts:

post = FbGraph::Post.fetch($post_id, access_token: ACCESS_TOKEN)

I couldn't find a method listed in the documentation for returning shares count. It is returned when I fetch the post, but I couldn't find a way to access it. I noticed in IRB that the value returned for the fetch method looks like a nested hash:

 "shares"=>{"count"=>37}

but I don't have the expertise in ruby to extract the above value. I know the readme on Github says shares are not supported, but I was hoping someone would have found a workaround.

Thanks!! 
Reply all
Reply to author
Forward
0 new messages