如何让用户分享Facebook的帖子 [英] How to get who and when a user shared a Facebook post
问题描述
我正在寻找的是一个图形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屋!