$confirmation_token = '58e46a05';
$data = json_decode(file_get_contents('php://input'));
switch ($data->type):
case 'confirmation': echo $confirmation_token; break;
case 'wall_post_new': реакция на событие; echo('ok'); break;
...
endswitch;