30/04
2017
Wallogit.com
2017 © Pedro Peláez
Unofficial Facebook Messenger Webhook in PHP
Official documentation available here
, (*1)
Via Composer, (*2)
bash
$ composer require linuskohl/facebook-messenger-webhook dev-master, (*3)
The MIT License (MIT). Please see License File for more information., (*4)
| Visibility | Function |
|---|---|
| public |
__construct(string $app_secret, string $validation_token) : void Webhook constructor. |
| public |
handle(mixed $request_body) : void Handle POST request |
| public |
handleVerification(mixed $parameters) : bool Handle GET verification requests https://developers.facebook.com/docs/graph-api/webhooks#verification |
| public |
verifyRequestSignature(string $signature, string $body) : void Verify that the callback came from Facebook https://developers.facebook.com/docs/graph-api/webhooks#setup |