Facebook Messenger Token Verification
A function to handle token verifications of the Facebook Messenger Platform format.
Usage
With express.js
;; const expressConfig = port: 8088 getPath: '/fbwebhook' messages: `Server running on port ` const fbVerifyConfig = verifyToken: 'YOUR_VERIFY_TOKEN' messages: validationFailed: 'Failed validation.' const config = Object;const app = ;const getEndPoint = ;app;app;
With claudia-api-builder
;; const api = ;const config = verifyToken: 'YOUR_VERIFY_TOKEN' messages: validationFailed: 'Failed validation.' api; ;
With AWS Lambda and the "Method Request passthrough" template of API Gateway
; const config = verifyToken: 'YOUR_VERIFY_TOKEN' messages: validationFailed: 'Failed validation.' const handler = ;;
See CONTRIBUTING.md for screenshots of the API Gateway setup on AWS