Skip to content

💬 Rapidly build Facebook Messenger apps in Node.js

License

Notifications You must be signed in to change notification settings

Timbological/messen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

messen

A lightweight framework for building Facebook Messenger apps

Installation

$ 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

const messen = new Messen();

messen.onMessage = ev => {
  console.log(ev);
};

// login to messen
messen.login({ email: '[email protected]', password: 'P4ssw0rd' }).then(() => {
  // start listening to events, like messages, reactions, etc.
  messen.listen();
});

Projects using messen

  • Messer - a CLI chat application for Facebook Messenger

About

💬 Rapidly build Facebook Messenger apps in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.7%
  • Shell 0.3%