Closed tuanxuong closed 7 years ago
i see https://github.com/pimax/fb-messenger-php-example/pull/20/commits/fe5d454fca57fa00f1018015e21ef98fc9029d46 and fix it
but, i can fix it with add
if (!empty($message['message'])) { $command = $message['message']['text'];
// When bot receive button click from user
} else if (!empty($message['postback'])) {
$command = $message['postback']['payload'];
} else
{
return;
}
hello sir, I download your source and config on my host. But when i send a message to Bot, Bot not reply. If i set $command in line 71 (before switch ($command)), bot Reply. Pls help me