Vote count:
0
Facebook is planning to drop support for FQL after V2.0 [http://ift.tt/1nlzJZ3].
The above task could be done easily with FQL
SELECT like_info.like_count, comment_info.comment_count, share_count
FROM stream
WHERE post_id = "POST_ID_HERE"
I am unable to find a replacement to the above method in graph api. I know we can get likes and comments count like
POST_ID/likes?summary=true AND
POST_ID/comments?summary=true
but I am unable to find a similar endpoint for shares.
NOTE: I am not looking for solutions that take URL input and query graph api for that URL shares, rather I am looking at finding solution to get shares count by POST_ID
PAGE_ID/feed?fields=comments.limit(1).summary(true),likes.limit(1).summary(true)
I have looked at.
- Facebook API: best way to get like, share, comment count for a page/group post?
- How to get Likes Count when searching Facebook Graph API with search=xxx
- Facebook post comment count from Graph API
- http://ift.tt/1nJ9Ro1
The result should be something like this:
{
"data": [{
"like_info": {
"like_count": 3506
},
"comment_info": {
"comment_count": 263
},
"share_count": 278
}]
}
Any help would be highly appreciated.
Cheers!
asked 12 secs ago
Aucun commentaire:
Enregistrer un commentaire