Why does my shared post call from graph api return empty result?

428 Views Asked by At

I am a researcher in the field of social media marketing and i am interested to find the shares information of a page's posts.

I used my own access token and was expecting that i could harvest a list of shares (Since i can see it on facebook.com)

However, such queries kept returning me an empty data array.

https://graph.facebook.com/v2.2/127512302882_10152539472047883/sharedposts?access_token=[Insert a Token]

Any idea ?

1

There are 1 best solutions below

3
On
  1. The API is expecting the POST_ID. The ID that you are using is actually PAGE-ID_POST-ID, use only POSTID (10152539472047883) and it should work.

  2. Also make sure that the access token you are using has the read_stream permission with it

Reference