nsomar / phoenix_facebook_echo_bot

Elixir sample facebook messenger echo bot using Phoenix framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Elixir sample facebook messenger echo bot using Phoenix framework.


Languages

Language:Elixir 100.0%