开发者

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:

Facebook get like count for search query


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜