Class: Facebook::Messenger::Incoming::Optin

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

Overview

The Optin class represents an incoming Facebook Messenger optin, which occurs when a user engages by using the Send-to-Messenger Plugin.

developers.facebook.com/docs/messenger-platform/plugin-reference

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

#refObject



11
12
13
# File 'lib/facebook/messenger/incoming/optin.rb', line 11

def ref
  @messaging['optin']['ref']
end