获取类似 Facebook 的源信息

发布于 2024-12-20 07:43:52 字数 668 浏览 0 评论 0原文

查看页面的底部,似乎可以得到关于特定页面的点赞来源的 Facebook 数据。不幸的是我不知道如何做到这一点。

理想情况下,我想要一种不使用 fql 的方法,例如:

https://graph.facebook.com/PAGE_ID/insights/SOURCE_NAME?access_token=ACCESS_TOKEN

但如果那不可能,我至少认为可以使用类似的方法通过 fql 来完成:

https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=PAGE_ID AND metric='SOURCE_NAME' AND period = period('month')&access_token=ACCESS_TOKEN

但这只会返回带有错误消息 Invalid 的 xml指标名称:SOURCE_NAME 对于我尝试使用的任何源名称。

访问这些数据的正确方法是什么?或者脸书只是想戏弄我?

Looking at the bottom of this page it would appear that it is possible to get facebook data on where likes are coming from for a particular page. Unfortunately I can't figure out how to do this.

Ideally I would like a method that doesn't use fql something like:

https://graph.facebook.com/PAGE_ID/insights/SOURCE_NAME?access_token=ACCESS_TOKEN

But if that's not possible I would at least think it is possible to do through fql using something like:

https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=PAGE_ID AND metric='SOURCE_NAME' AND period = period('month')&access_token=ACCESS_TOKEN

but this just returns the xml with the error message Invalid metric name: SOURCE_NAME for whatever source name I'm trying to use.

What is the proper way to access this data? Or is facebook just trying to tease me?

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

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

发布评论

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

评论(2

庆幸我还是我 2024-12-27 07:43:52

我正在寻找的查询是这样的

https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=OBJECT_ID AND metric='page_fans_by_like_source' AND end_time=end_time_date('YYYY-MM-DD') AND period=period('month')&access_token=ACCESS_TOKEN

The query I was looking for was something like

https://api.facebook.com/method/fql.query?query=SELECT metric, value FROM insights WHERE object_id=OBJECT_ID AND metric='page_fans_by_like_source' AND end_time=end_time_date('YYYY-MM-DD') AND period=period('month')&access_token=ACCESS_TOKEN
迷荒 2024-12-27 07:43:52

您可以尝试使用此图形 API,如下所示:

https://graph.facebook.com/[page_id]/insights/page_fans_by_like_source/?access_token=?[access]&since=[time_stamp]&until=[time_stamp]

You can try this graph API as below:

https://graph.facebook.com/[page_id]/insights/page_fans_by_like_source/?access_token=?[access]&since=[time_stamp]&until=[time_stamp]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文