Skip to content

Instantly share code, notes, and snippets.

@progapandist
Created December 15, 2016 20:03
Show Gist options
  • Save progapandist/0da24db1716784b8e5b1df04191313ff to your computer and use it in GitHub Desktop.
Save progapandist/0da24db1716784b8e5b1df04191313ff to your computer and use it in GitHub Desktop.
require 'sinatra'
# NOTE: ENV variables should be set directly in terminal for testing on localhost
# Talk to Facebook
get '/webhook' do
params['hub.challenge'] if ENV["VERIFY_TOKEN"] == params['hub.verify_token']
end
get "/" do
"Nothing to see here"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment