如何从 Facebook Insights 访问域名数据?

发布于 2024-12-11 17:08:28 字数 513 浏览 5 评论 0原文

我读到可以以编程方式访问 Facebook Insights

Graph API 提供对所有这些数据的编程访问,以便您 可以将平台数据集成到您自己的自定义分析系统中。

不过,我有两个问题:

  1. 是否可以使用 Facebook Insights 从域访问数据 对于域?
  2. 如何从公共 URL 获取数据?我写了这个小脚本,它返回a的股票数量给定 URL,而不使用来自 Facebook Insights 的域数据,但如何从给定 URL 获取所有可能的信息(例如,谁分享了它、谁喜欢了它、谁评论了等)?这可能吗?

I've read that it is possible to access Facebook Insights programmatically:

The Graph API provides programmatic access to all of this data so you
can integrate Platform data into your own, custom analytics systems.

I have two questions, though:

  1. Is it possible to access data from a domain, using Facebook Insights
    for domains?
  2. How to get data from a public URL? I've wrote this small script that returns the number of shares for a given URL without using data from Facebook Insights for domains, but how do I get all possible information from a given URL (e.g. who shared it, who liked it, who commented, etc)? Is this even possible?

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

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

发布评论

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

评论(1

纵情客 2024-12-18 17:08:28

要获取域的见解,请获取 read_insights 权限,然后获取

https://graph.facebook.com/insights?domain=example.com&access_token=TOKEN

要获取域中特定 URL 的见解,请获取

https://graph.facebook.com/?id=YOUR_URL&access_token=TOKEN

并非您想要的所有数据都可用 - 例如,您无法获取访问该域的用户的 UID分享并喜欢您的网址,但您可以获取计数。

如果您的 URL 中嵌入了评论插件,则可以获取对您的 URL 发表评论的用户的 UID,因为插件中的评论始终是公开的。

To get insights for a domain, get the read_insights permission, then GET

https://graph.facebook.com/insights?domain=example.com&access_token=TOKEN

To get insights for a particular URL on your domain, GET

https://graph.facebook.com/?id=YOUR_URL&access_token=TOKEN

Not all of the data you want is available - for example, you can't get the UIDs of the users who shared and liked your URL, but you can get the count.

If you have the comments plugin embedded on your URL, you can get the UIDs of the users who have commented on your URL as comments in the plugin are always public.

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