Sha256: 5de949c930d2418a4baeb5ccb30ab6713ebd36330515a5fab23ce58e016faf9c

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

module Facebook
  module Bot
    class Space::StationController < ::ApplicationController
      def validation
        if params["hub.verify_token"] === Facebook::Bot::Config.validation_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 & 2 rubygems

Version Path
messenger-bot-0.1.4 lib/facebook/bot/station.rb
facebook-bot-0.1.3 lib/facebook/bot/station.rb