fbmessenger-example

1.0.0 • Public • Published

fbmessenger example

This is setup to run with Node >= 6

Create a .env file that contains the following

VERIFY_TOKEN=<your verification token>
PAGE_ACCESS_TOKEN=<your page access token>
APP_SECRET=<your app secret>

Install the dependencies

yarn

Run the app

yarn start

You can use a tool like ngrok to tunnel connections to your localhost to make testing simple. Just set the Facebook app's webhook url to the https url that ngrok generates for you.

Setup the bot

browse to /init in a web browser and this will run a series of steps including setting a Persistent Menu, the Greeting Text and a Get Started button.

/fbmessenger-example/

    Package Sidebar

    Install

    npm i fbmessenger-example

    Weekly Downloads

    2

    Version

    1.0.0

    License

    Apache-2.0

    Unpacked Size

    109 kB

    Total Files

    7

    Last publish

    Collaborators

    • rickydunlop