Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting which users shared a post

With the graph api, when I query for the feed of a user or page, there are some posts that have been shared by users, and I can see the data about the number of shares within the data section of one entity:

  "shares": {
    "count": 2
  }, 

When browsing facebook, on that post, when I click on the icon that represents "show shares", something pops up that lets me see some users that shared the post, according to the comment "You can see only shares that are public or from friends." So is there a way to get the user data from the shares with the graph api?

like image 478
Attila Szeremi Avatar asked Nov 04 '22 00:11

Attila Szeremi


1 Answers

The API doesn't provide information about users who have shared a post / link. Its probably something they will add in the future, but it's not possible at the moment. Your best bet for this information is to scrape the UI to get this information, but you will run into lots of issues and it's probably not worth the effort.

Facebook does give information on who Likes and Comments on posts however, if its any consolation.

like image 180
Niraj Shah Avatar answered Dec 18 '22 22:12

Niraj Shah