Get up and running with the Facebook Messenger API in a minute... or 15. Well that's god damn quick anyway.
Once you've cloned project, then 'cd' into the directory and type:
$ npm install
Deploy the app to Heroku - or similar - in order to run the NodeJS-server: https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up
2.1. Create the app
2.2. Get a Page Access Token
- Store the token as FB_TOKEN in index.js.
2.3. Setup Webooks
2.4. Bind webhooks to your app
- Define your callback URL.
- Store the token as FB_VERIFY in index.js.
2.5. Subscribe
2.6. Get your App Secret
- Store the App Secret as FB_APP_SECRET in index.js.