class Facebook::Messenger::Incoming::AccountLinking

The AccountLinking class represents an incoming Facebook Messenger Account Linking webhook, when the Linked Account or Unlink Account call-to-action have been tapped

developers.facebook.com/docs/messenger-platform/webhook-reference/account-linking

Public Instance Methods

authorization_code() click to toggle source

The authorization code allows to match business user entity to PSID.

# File lib/facebook/messenger/incoming/account_linking.rb, line 22
def authorization_code
  @messaging['account_linking']['authorization_code']
end
status() click to toggle source

Return String defining whether account in linked or not.

@return [String] linked/unlinked.

# File lib/facebook/messenger/incoming/account_linking.rb, line 17
def status
  @messaging['account_linking']['status']
end