https://github.com/tomquirk/messen
💬 Rapidly build Facebook Messenger apps in Node.js
https://github.com/tomquirk/messen
chat chatbot facebook facebook-chat-api facebook-messenger framework
Last synced: 5 months ago
JSON representation
💬 Rapidly build Facebook Messenger apps in Node.js
- Host: GitHub
- URL: https://github.com/tomquirk/messen
- Owner: tomquirk
- License: mit
- Created: 2018-09-24T11:13:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T11:26:22.000Z (almost 3 years ago)
- Last Synced: 2025-08-17T12:29:48.805Z (7 months ago)
- Topics: chat, chatbot, facebook, facebook-chat-api, facebook-messenger, framework
- Language: TypeScript
- Homepage:
- Size: 308 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# messen
A lightweight framework for building Facebook Messenger apps
## Installation
```bash
$ npm install messen
```
## Getting started
Messen handles the boring stuff for you, and exposes a number of callback methods that you must define. These are:
- `getMfaCode`
- `promptCredentials`
- `onMessage`
- `onThreadEvent`
Have a look at the type definitions for how they should be implemented.
### Example usage
```js
const messen = new Messen();
messen.onMessage = ev => {
console.log(ev);
};
// login to messen
messen.login({ email: 'test@mailnator.com', password: 'P4ssw0rd' }).then(() => {
// start listening to events, like messages, reactions, etc.
messen.listen();
});
```
## Projects using `messen`
* [Messer](https://github.com/mjkaufer/Messer) - a CLI chat application for Facebook Messenger