Skip to content

Elixir sample facebook messenger echo bot using Phoenix framework.

Notifications You must be signed in to change notification settings

nsomar/phoenix_facebook_echo_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages