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

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow messenger-bot

messenger-bot Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of messenger-bot!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Communications Software, JavaScript Frameworks, JavaScript Messaging Platform

Registered

2022-04-27