phoenix_facebook_echo_bot icon indicating copy to clipboard operation
phoenix_facebook_echo_bot copied to clipboard

Elixir sample facebook messenger echo bot using Phoenix framework.

Phoenix facebook echo bot Deploy

Phoenix facebook echo bot is an example of a facebook messenger bot that echos whats sent to it.

Usage

The easist way is using Heroku deploy button (from above).

Or manually, to start your Phoenix app:

  1. Install dependencies with mix deps.get
  2. Create and migrate your database with mix ecto.create && mix ecto.migrate
  3. 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

Configurations

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.

Learn more

  • 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