Facebook get like count for search query
I'm using https://graph.facebook.com/se开发者_如何学JAVAarch?q=watermelon&type=post
to retrieve posts with query watermelon
. Is it possible to also get the like count for the posts I retrieve?
The likes element is returned for search result entries that have been liked. Not all posts have been liked or the users permissions don't allow viewing of likes. Here is a screenshot from the graph explorer though for your query which has some likes information:
The Facebook FQL does not have the feature of count, but you could always count the number of objects in the array with whatever language you are using.
精彩评论