mercredi 12 août 2015

Why can't I see Shares on my Page?

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.

http://ift.tt/1IZposL

Aucun commentaire:

Enregistrer un commentaire