Likes and comments objects no problem.
@graph = Koala::Facebook::API.new(contest.blogger.oauth_token)
likes = @graph.get_object(contest.fb_post_id, :fields => "likes.summary(true)")["likes"]
comments = @graph.get_object(contest.fb_post_id, :fields => "comments.summary(true)")["comments"]
However when i try shares is a shit:
I have tried anyway:
shares = @graph.get_object(contest.fb_post_id, :fields => "sharedposts.summary(true)")["sharedposts"]
@graph.get_object(contest.fb_post_id, :fields => "shares")["shares"]["count"]
@graph.get_object('/'+post_id+'/sharedposts?limit=10000&format=json')
Only, i can see shares count. this is ridiculous.
Aucun commentaire:
Enregistrer un commentaire