Skip to content

Instantly share code, notes, and snippets.

View milankowww's full-sized avatar
😄

Milan Pikula milankowww

😄
  • IP Security Consulting, @SK-CERT
  • Bratislava, Slovakia
View GitHub Profile
@visitdigital
visitdigital / webhook.php
Last active September 20, 2022 02:51
Very Simple Facebook Chat Bot PHP Webhook Script Example
<?php
$challenge = $_REQUEST['hub_challenge'];
$verify_token = $_REQUEST['hub_verify_token'];
// Set this Verify Token Value on your Facebook App
if ($verify_token === 'testtoken') {
echo $challenge;
}
$input = json_decode(file_get_contents('php://input'), true);