如何让用户分享Facebook的帖子 [英] How to get who and when a user shared a Facebook post

查看:308
本文介绍了如何让用户分享Facebook的帖子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的Facebook帖子,我的朋友分享(不喜欢),我希望得到谁分享它,什么时候。使用图表api,我可以得到类似的或评论的信息和一个帖子被共享的次数。
我正在寻找的是一个图形api调用或Facebook的fql查询,用于返回与此相似的结果集:

  data:[
{
id:user_id_1,
name:用户名1,
created:some date
},
{
id:user_id_2,
name:用户名2,
创建:其他日期
}
]


解决方案

我也是由于Facebook显示了分享帖子的用户列表,所以我期待Graph API中可以使用相同的内容,但不幸的是,迄今为止还没有这样的存在。



我可以找到的最佳解决方法是刮刮 Facebook页面共享给定帖子的用户列表我还没有尝试过这个解决方案,但是这应该是解决问题现在。这里唯一的问题是,如果Facebook更改了该页面的HTML结构,则必须修改抓取器。


For my Facebook posts my friends share (not likes) I would like get who shared it and when. Using the graph api I can get the like or comment information and the number of times a post has been shared. What I am looking for is a graph api call or Facebook fql query for shares which returns a result set similar to this:

data": [
      {
         "id": "user_id_1",
         "name": "Username 1",
         "created": "some date"
      },
      {
         "id": "user_id_2",
         "name": "Username 2",
         "created": "some other date"
      }
   ]

解决方案

I am also looking for the exact thing for long time now. Since Facebook shows the list of users who shared the post, I was expecting that the same will be available in Graph API. But unfortunately nothing such exists till date.

The best workaround I could find for this problem is scraping the Facebook page for the list of users who shared the given post. I haven't yet tried this solution but this should solve the problem for now. The only issue here is, if Facebook changes the HTML structure of that page, the scrapper will have to modified.

这篇关于如何让用户分享Facebook的帖子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆