Getting which users shared a post

∥☆過路亽.° 提交于 2019-12-22 06:25:11

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/10499088/getting-which-users-shared-a-post

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!