Created
December 15, 2016 20:03
-
-
Save progapandist/0da24db1716784b8e5b1df04191313ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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