How To Verify Facebook Webhook

You need to create a URL which can be accessed from around the globe.
And put this code under that URL

// below code is for php because in php hub.challenge will be hub_challenge. Note that hub_verify_token is the code which you are trying to send from facebook when configuring webhook for the url


if($_GET['hub_verify_token']=='01127216957'){
echo $_GET['hub_challenge'];
}