Get facebook posts and total count of likes for each post
问题 I am trying to get a Facebook page posts with count of comments and likes for each post. For likes there is a parameters I can pass which is summary = true and total_count . I tried this page_id?fields=posts.limit(1).summary(1) but nothing comes back. I can not write FQL as it will be deprecated soon. I am writing php API. 回答1: You can get total count by passing arguments like ?fields=likes.summary(1),comments.summary(1), $fbtimeposts = (new FacebookRequest($session, 'GET', "/me/feed?fields