Class: Facebook::Messenger::Incoming::AccountLinking

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/facebook/messenger/incoming/account_linking.rb

Overview

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

Instance Attribute Summary

Attributes included from Common

#messaging

Instance Method Summary collapse

Methods included from Common

#access_token, #initialize, #mark_seen, #recipient, #reply, #sender, #sent_at, #typing_off, #typing_on

Instance Method Details

#authorization_codeObject



16
17
18
# File 'lib/facebook/messenger/incoming/account_linking.rb', line 16

def authorization_code
  @messaging['account_linking']['authorization_code']
end

#statusObject



12
13
14
# File 'lib/facebook/messenger/incoming/account_linking.rb', line 12

def status
  @messaging['account_linking']['status']
end