Can we get the count of the number of posts in fb using graph api v2.3?

I need to get the number of shares of a specific post in the fb uisng graph api. I couldn't find a way to do this. I followed the link below.

It returns general message data in pagination format. Is there a way to get a total stock score without collecting all the data and without pagination?

Please suggest !!


source to share

2 answers

Just the field shares

should give you the number of shares forPOST_ID



Sample data from my feed

  "shares": {
    "count": 1
  "id": "POST_ID", 
  "created_time": "2015-04-29T09:07:12+0000"




Get the number of shares:



Bonus [Get Likes + Promotions + Comments]



Improved version (add constraint (0) to remove liked list and get only summary):





All Articles