Phoenix facebook echo bot is an example of a facebook messenger bot that echos whats sent to it.
The easist way is using Heroku deploy button (from above).
Or manually, to start your Phoenix app:
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.create && mix ecto.migrate
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000
from your browser.
Ready to run in production? Please check our deployment guides.
The webhook api endpoint is at:
https://your_url/api/webhook
When starting it in production, you need to set the following environment varibles
VERIFY_TOKEN
the facebook verification token that will be sent in the facebook challenge.
PAGE_TOKEN
the facebook page token you will use with your app.
To get the VERIFY_TOKEN
and PAGE_TOKEN
follow the instructions here
This project uses phoenix_facebook_messenger as a dependency to create the chat bot.
- Official website: http://www.phoenixframework.org/
- Guides: http://phoenixframework.org/docs/overview
- Docs: http://hexdocs.pm/phoenix
- Mailing list: http://groups.google.com/group/phoenix-talk
- Source: https://github.com/phoenixframework/phoenix