[[[Invalid [Invalid parameter]],当获得在转换企业帐户之前发布的媒体的覆盖率指标时]

问题描述 投票:0回答:1

[这是在转换企业帐户之前发布的媒体。问题是我在Facebook graph api资源管理器中得到正确的响应。

"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:工作>> FacebookInstagramBackTrackOwned >>异常>>无效的参数。

'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个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.