【问题标题】:retrive instagram media comments using graph api business discovery使用图形 API 业务发现检索 instagram 媒体评论
【发布时间】:2022-09-24 22:29:31
【问题描述】:

我正在使用此 URL 从第三方企业帐户中检索信息:

MY_IG_BUSINESS_ACCOUNT_ID?fields=business_discovery.username(digikalacom){media.limit(5){comments_count}}

问题是当我在媒体查询中包含comments 时(在comments_count 之后)我得到这个错误:

{
    \"error\": {
       \"message\": \"(#100) Please read documentation for supported fields.\",
       \"type\": \"OAuthException\",
       \"code\": 100,
       \"fbtrace_id\": \"A8QnXYZlrudpxF8xhdZsSYf\"
    }
}

business_discovery 提供的文档没有提及实际的 cmets 列表。它只包括comments_count

这是我为我的应用程序使用的权限列表:

read_insights
pages_show_list
ads_management
business_management
instagram_basic
instagram_manage_comments
instagram_manage_insights
pages_read_engagement
pages_manage_metadata

所以我不能肯定地说。无论是权限问题还是 IG 图形 API 对于 cmets 都不起作用。那么关于如何使用图形 API 获取第三方 IG 帐户媒体的 cmets 列表有什么想法吗?

    标签: facebook-graph-api instagram-graph-api


    【解决方案1】:

    仅当您拥有所查询帐户的有效身份验证令牌时,您才能获取 cmets。您将使用 /media 端点来获取 cmets、见解等:

    /MY_IG_BUSINESS_ACCOUNT_ID/media?fields=id,caption,comments_count,children{media_url},comments.limit(50){id,timestamp,username,text},insights.metric(impressions,reach,engagement,saved,video_views)&limit=30

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-04
      相关资源
      最近更新 更多