我的示例代码:
$challenge = $_REQUEST['hub_challenge'];
$verify_token = $_REQUEST['hub_verify_token'];
if($verify_token === 'mysecretcode'){
echo $challenge;
}
$input = json_decode(file_get_contents('php://input'), true);
$data = [
"lead_id" => $input['entry'][0]['changes'][0]['value']['leadgen_id']
];
$lead_info = getDataInfo($data['lead_id']);
sendDataToApiCRM($lead_info);