【问题标题】:Exception[Invalid parameter] when getting reach metrics of Media Posted Before Business Account Conversion获取商业帐户转换前发布的媒体的覆盖面指标时出现异常[无效参数]
【发布时间】:2020-01-27 12:57:44
【问题描述】:

这是在企业帐户转换之前发布的媒体的情况。 问题是我在 Facebook graph api explorer 中得到了正确的响应。

"insights": {
        "data": [
          {
            "values": [
              {
                "value": 8
              }
            ],
            "id": "xxxxxxxxxxxxxxxxx/insights/reach/lifetime"
          }
        ]
      },

但是当尝试使用 api 调用时,xxxxxxxxx/media?fields=media_url,caption,comments_count,permalink,media_type,like_count,timestamp,username,thumbnail_url,insights.metric(reach){values} 我得到了

dev.ERROR: Jobs >> FacebookInstagramBackTrackOwned >> Exception >>Invalid parameter.

'error_subcode' => 2108006,
'is_transient' => false,
'error_user_title' => 'Media Posted Before Business Account Conversion',
'error_user_msg' => 'The media was posted before the most recent time that the user\'s account was converted to a business account from a personal account.'

【问题讨论】:

    标签: php facebook-graph-api facebook-php-sdk laravel-5.7


    【解决方案1】:

    我所做的是在捕获异常部分,我检查了错误代码,2108006 和 error_user_title,Media Posted Before Business Account Conversion。然后在没有到达参数的情况下进行调用,以便我获取所有其他数据。

    【讨论】:

    • 你能解释一下你是怎么做到的吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-12-10
    • 1970-01-01
    • 2013-01-02
    • 2011-11-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-02
    相关资源
    最近更新 更多