I am trying to get a fb 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 depricated soon. I am writing php API.
Thanks in advance.
Answer :
page_id?fields=posts.limit(40){likes.limit(1).summary(1),comments.limit(1).summary(1)}
Because I don't need any comments but only summary I set comments.limit(1), same for likes.
Thanks for your help!
You can get total count by passing arguments like
I hope above example helps you in someway!!!!
You can try this