In July 2013 Facebook removed the comment count from posts in the graph API. Is there an alternative, currently working way to retrieve the number of comments for a specific post, without having to download all of them? Thanks.
1
votes
3 Answers
2
votes
Well i don't know your scenario, so can't help you with exact solution. but one way to get comments count is getting it from the stream table using FQL.
there is a structure of comment_info which gives the comment count for any specific post.
see the query below for example:
Select type, post_id, description, likes,comment_info from stream WHERE source_id = "*post_id*"
put the post id in the clause.
1
votes
0
votes
FQL is deprecated so you should use the Graph API via https://developers.facebook.com/docs/graph-api/reference/v2.2/object/comments