Module: Facebook::Messenger

Defined in:
lib/facebook/messenger.rb,
lib/facebook/messenger/bot.rb,
lib/facebook/messenger/error.rb,
lib/facebook/messenger/server.rb,
lib/facebook/messenger/bot/tag.rb,
lib/facebook/messenger/profile.rb,
lib/facebook/messenger/version.rb,
lib/facebook/messenger/incoming.rb,
lib/facebook/messenger/configuration.rb,
lib/facebook/messenger/incoming/read.rb,
lib/facebook/messenger/subscriptions.rb,
lib/facebook/messenger/bot/exceptions.rb,
lib/facebook/messenger/incoming/optin.rb,
lib/facebook/messenger/incoming/common.rb,
lib/facebook/messenger/server_no_error.rb,
lib/facebook/messenger/bot/error_parser.rb,
lib/facebook/messenger/bot/message_type.rb,
lib/facebook/messenger/incoming/message.rb,
lib/facebook/messenger/incoming/payment.rb,
lib/facebook/messenger/incoming/delivery.rb,
lib/facebook/messenger/incoming/postback.rb,
lib/facebook/messenger/incoming/referral.rb,
lib/facebook/messenger/bot/messaging_type.rb,
lib/facebook/messenger/incoming/message_echo.rb,
lib/facebook/messenger/configuration/providers.rb,
lib/facebook/messenger/incoming/account_linking.rb,
lib/facebook/messenger/incoming/message_request.rb,
lib/facebook/messenger/incoming/policy_enforcement.rb,
lib/facebook/messenger/configuration/providers/base.rb,
lib/facebook/messenger/configuration/providers/environment.rb

Overview

All the code for this gem resides in this module.

Defined Under Namespace

Modules: Bot, Incoming, Profile, Subscriptions Classes: BadRequestError, Configuration, Error, FacebookError, Server, ServerNoError

Constant Summary collapse

X_HUB_SIGNATURE_MISSING_WARNING =
<<-HEREDOC.freeze
  The X-Hub-Signature header is not present in the request. This is
  expected for the first webhook requests. If it continues after
  some time, check your app's secret token.
HEREDOC
VERSION =

Returns Define the version of gem.

Returns:

  • (String)

    Define the version of gem.

'1.1.1'.freeze

Class Method Summary collapse

Class Method Details

.configObject


18
19
20
# File 'lib/facebook/messenger.rb', line 18

def self.config
  @config ||= Configuration.new
end

.config=(config) ⇒ Object


22
23
24
# File 'lib/facebook/messenger.rb', line 22

def self.config=(config)
  @config = config
end

.configure {|config| ... } ⇒ Object

Yields:


14
15
16
# File 'lib/facebook/messenger.rb', line 14

def self.configure
  yield config
end