公制(喜欢)应用metric_type = total_value指定

发布于 2025-02-09 23:43:29 字数 523 浏览 2 评论 0原文

我正在尝试使用卷曲请求从我的Instagram帐户中获取喜欢的内容,但是我一直遇到相同的错误:

{"error":{"message":"(#100) The following metrics (likes) should be specified with parameter metric_type=total_value","type":"OAuthException","code":100

我的代码下面给出:

curl = 'https://graph.facebook.com/v14.0/ig-business-account-id/insights?metric=impressions,reach,likes&period=day&access_token='
response = requests.get(curl)
print (response.text)

我尝试搜索total_value的含义,但我在文档中找不到任何东西关于如何使用它。任何帮助将不胜感激。

I'm trying to use a curl request to get the likes from my Instagram account but I keep getting the same error:

{"error":{"message":"(#100) The following metrics (likes) should be specified with parameter metric_type=total_value","type":"OAuthException","code":100

My code is given below:

curl = 'https://graph.facebook.com/v14.0/ig-business-account-id/insights?metric=impressions,reach,likes&period=day&access_token='
response = requests.get(curl)
print (response.text)

I've tried to search what total_value means but I can't find anything in the documentation about how to use it. Any help would be appreciated.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文