Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to get all user id's who have shared a specific post, through graph api or any other resource?

I am looking for a way to record user id's of a public post for a brand. If there are any resources available, any help would be appreciated.

like image 252
user2078768 Avatar asked Dec 17 '25 18:12

user2078768


1 Answers

Retrieving share data with FB API doesn't seem to be officialy supported by Facebook, but you can retrieve posts shares with Graph API, just do the following:

  • Get the ID of your post (eg. /me/posts query)
  • Split the ID on underscore character and get the second part (first part indentifies posts author)
  • Query the shares: [id_2nd_part]/sharedposts

Note that since it's not officialy supported it may stop working at some point in the future

You can test it with Graph explorer - to get shared posts you need read_stream permissions on your access token if I'm not mistaken

like image 151
xjedam Avatar answered Dec 20 '25 11:12

xjedam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!