在 Facebook 上分享的人员列表

发布于 2024-12-09 10:38:31 字数 290 浏览 1 评论 0原文

我已经搜索文档有一段时间了,但似乎找不到实现此目的的方法。这些信息是公开的(在 Facebook 页面上......链接显示“查看所有 # 股”),但我似乎找不到通过 FQL 或图形 API 访问此信息的方法。

我知道我可以获得给定帖子的点赞列表:

https://graph.facebook.com/87236249496_134765166623967/likes

目标是获得分享过的人的列表 - 但似乎没有相同的东西股票。我错过了什么吗?

I've been scouring the docs for a while now and can't seem to find a way to accomplish this. The information is available publicly (on a facebook page ... the link says "View all # shares") but I can't seem to find a way to access this info either via FQL or the graph API.

I know I can get a list of likes for a given post:

https://graph.facebook.com/87236249496_134765166623967/likes

The goal is to get a list of people who've shared -- but there doesn't seem to be the same sort of thing for shares. Am I missing something?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

傲性难收 2024-12-16 10:38:31

您可以通过“graph.facebook.com/OBJECT_ID/sharedposts”连接来完成此操作:

在此处输入图像描述

我弄清楚了通过 metadata=1 参数进行此连接:

在此处输入图像描述

You can do it via "graph.facebook.com/OBJECT_ID/sharedposts" connection:

enter image description here

I figure it out this connection via metadata=1 parameter:

enter image description here

执手闯天涯 2024-12-16 10:38:31

转到... http://www.facebook.com/ajax/shares/view/?target_fbid=10154612868272801&__a=1

10154612868272801 是 Facebook 故事 ID,< code>__a 代表异步。

你会看到大量的文本/JSON,它基本上是 HTML 和 HTML。 JS 用于小弹出窗口。有部分文本如 hovercard.php?id=#,其中 # 是 Facebook 用户 ID,使用 preg_match_all 您可以获取所有用户分享该帖子的 ID。

例如:100000541151971 (Eric) 和 9204448 (Courtney)...

不幸的是,您必须登录 Facebook 才能执行第一步,弄清楚:)

Go to... http://www.facebook.com/ajax/shares/view/?target_fbid=10154612868272801&__a=1

10154612868272801 is Facebook story ID, __a stands for asynchronous.

You will see large amount of text/JSON, it is basically HTML & JS for little popup window. There is portion of text like hovercard.php?id=# where # is Facebook user ID, using preg_match_all you then get all of the user ID's who shared that post.

Eg: 100000541151971 (Eric) and 9204448 (Courtney)...

Unfortunately, you must be logged into Facebook to do first step, figure it out :)

昵称有卵用 2024-12-16 10:38:31

我认为您可以通过 FQL 查询从流表中获取 share_count,就像

SELECT type, source_id, share_count, permalink, description, post_id, actor_id, target_id, message , share_count 
FROM stream
WHERE filter_key = 'others' and post_id = '87236249496_134765166623967'

您可以测试它一样 https://developers .facebook.com/tools/explorer/

注意:您必须按照说明获取 read_stream 权限 此处

I think you can get the share_count from stream table by FQL query just like

SELECT type, source_id, share_count, permalink, description, post_id, actor_id, target_id, message , share_count 
FROM stream
WHERE filter_key = 'others' and post_id = '87236249496_134765166623967'

you can test it https://developers.facebook.com/tools/explorer/

Note: you have to take the read_stream permissions as explained here

千柳 2024-12-16 10:38:31

输入此链接:https://graph.facebook.com/134765166623967/sharedposts(带有有效的access_token)

链接中的id是wallpost id (87236249496_134765166623967) 减去页面 id (87236249496) 并减去下划线。

您还需要 read_stream 权限

Tye this link: https://graph.facebook.com/134765166623967/sharedposts (with a valid access_token)

The id in the link is the wallpost id (87236249496_134765166623967) minus the page id (87236249496) and minus the underscore.

You'll also need the read_stream permission

一梦浮鱼 2024-12-16 10:38:31

我知道您希望通过 post_id 获取分享,但是您能满足于通过 page_id 而不是 post_id 查找分享吗?

如果可以的话,您可以使用以下 FQL 来获取您要查找的数据。

SELECT via_id, created_time, owner_comment
FROM link
WHERE owner = me()

然后,您可以将 via_id 与帖子作者(页面 ID)进行比较,以确定此分享是否来自相关帖子作者。

不幸的是,数据返回似乎存在一个错误,其中一些 via_ids 返回为 0。Facebook 中有一张票证,在本文发表时,该票证已以中等优先级开放了三周。我不知道这个问题是否特定于我的应用程序或影响每个人,但该查询可能会满足您的需求。

I know you're looking to get at shares through the post_id, but can you settle for finding shares by page_id instead of post_id?

If you can, then you can use the following FQL to get the data you're looking for.

SELECT via_id, created_time, owner_comment
FROM link
WHERE owner = me()

You can then compare via_id against the posts author (page ID) to determine if this share came from the post author in question.

Unfortunately, there seems to be a bug with the data return where some of the via_ids come back as 0. There is a ticket in with Facebook which, at the time of this post, has been open for three weeks at medium priority. I have no idea if this issue is specific to my app or affects everyone, but that query might get you what you want.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文