class Sinbotra::Server
Public Instance Methods
match_facebook_challenge(params)
click to toggle source
# File lib/sinbotra/server.rb, line 21 def match_facebook_challenge(params) matching = params["hub.mode"] == "subscribe" && params["hub.verify_token"] == ENV.fetch("FACEBOOK_CHALLENGE") matching ? params["hub.challenge"] : nil end