A Node client for the Facebook Messenger Platform. A verification token for the first-time setup of your webhook. Optional, but will be required by Facebook when you first set up your webhook. Your App Secret token used for message integrity check. If specified, every POST request will be tested for spoofing. As well, it mounts /_status, which will return {"status": "ok"} if the middleware is running. If verify is specified in the bot options, it will mount a handler for GET requests that verifies the webhook. The underlying method used by bot.middleware() to parse the message payload, and fire the appropriate events. Use this if you've already implemented your own middleware or route handlers to receive the webhook request, and just want to fire the events on the bot instance.
Features
- Requires Node >=4.0.0
- See examples in the examples folder
- Send a message with the payload to the target recipient
- Send the media to the Attachment Upload API and call the callback if the upload is successful
- Send the sender action senderAction to the target recipient, and call the callback if any
- Set settings for the Get Started Button