Sha256: 889e4cc778b1a4cc23893edccce3066aacf445b9d7393a02b09eba4e4d8f5815
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
module Facebook module Bot class Space::StationController < ::ApplicationController def validation if params["hub.verify_token"] === Facebook::Bot::Config.verify_token return render json: params["hub.challenge"] end render body: "Error, wrong validation token" end def receive Facebook::Bot::Receiver.share(params) render body: "ok" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facebook-bot-0.1.2 | lib/facebook/bot/station.rb |
facebook-bot-0.1.1 | lib/facebook/bot/station.rb |