使用php列出messenger bot的白色域时出错

使用php列出messenger bot的白色域时出错,php,messenger,Php,Messenger,我在messenger平台上尝试使用php将我的应用程序域列为白名单时出现此错误 {“error”:{“message”:“(#100)参数设置_type是必需的”,“type”:“OAuthException”,“code”:100,“fbtrace_id”:“H4+VMmlq3Ab”} 这里是json $domain_white = '{ "whitelisted_domains":[ "https://aadb-3120.herokuapp.com" ] }'; ` 还有我的卷发

我在messenger平台上尝试使用php将我的应用程序域列为白名单时出现此错误

{“error”:{“message”:“(#100)参数设置_type是必需的”,“type”:“OAuthException”,“code”:100,“fbtrace_id”:“H4+VMmlq3Ab”}

这里是json

$domain_white = '{
"whitelisted_domains":[
"https://aadb-3120.herokuapp.com"
]
}';
`

还有我的卷发

    function curl($input)
    {
        global $accessToken;
        global $input;
       $ch = curl_init('https://graph.facebook.com/v2.6/me/messages?access_token='.$accessToken);
      curl_setopt($ch, CURLOPT_POST, true);
      curl_setopt($ch, CURLOPT_POSTFIELDS, $input);
      curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json')); 
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
      $output = curl_exec($ch);
      curl_close($ch);
      error_log($output); 

    }

您没有设置类型,这是必需的:

{
  "setting_type": "domain_whitelisting",
  "whitelisted_domains": [
    "https://aadb-3120.herokuapp.com"
  ],
  "domain_action_type": "add"
}

您没有设置类型,这是必需的:

{
  "setting_type": "domain_whitelisting",
  "whitelisted_domains": [
    "https://aadb-3120.herokuapp.com"
  ],
  "domain_action_type": "add"
}
你能帮我也做这个吗?佩德罗洛比托你能帮我也做这个吗