Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 获取业务帐户转换前发布的媒体的到达指标时出现异常[无效参数]_Php_Facebook Graph Api_Facebook Php Sdk_Laravel 5.7 - Fatal编程技术网

Php 获取业务帐户转换前发布的媒体的到达指标时出现异常[无效参数]

Php 获取业务帐户转换前发布的媒体的到达指标时出现异常[无效参数],php,facebook-graph-api,facebook-php-sdk,laravel-5.7,Php,Facebook Graph Api,Facebook Php Sdk,Laravel 5.7,这是在商业帐户转换之前发布的媒体的情况。 问题是我在Facebook graph api explorer中得到了正确的响应 "insights": { "data": [ { "values": [ { "value": 8 } ], "id": "xxxxxxxxxxxxxxxxx/insights

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

"insights": {
        "data": [
          {
            "values": [
              {
                "value": 8
              }
            ],
            "id": "xxxxxxxxxxxxxxxxx/insights/reach/lifetime"
          }
        ]
      },
但是当尝试使用api调用时,
xxxxxxxxx/media?fields=media\u url、标题、注释\u计数、永久链接、媒体类型,比如计数、时间戳、用户名、缩略图\u url、洞察。metric(reach){values}

开发错误:作业>>FacebookInstagramBackTrackOwned>>异常>>无效参数


我所做的是在catch异常部分,我检查了错误代码,
2108006
和错误用户标题,
在业务帐户转换之前发布的媒体
。然后在没有reach参数的情况下进行了调用,以便获取所有其他数据

你能解释一下你是怎么做的吗?
'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.'