PHP Class mapdev\FacebookMessenger\Messenger

Exibir arquivo Open project: davidpiesse/facebook_messenger_php

Protected Properties

Property Type Description
$api
$notification_type

Public Methods

Method Description
__construct ( $token )
addWhitelistedDomain ( array $domains )
create ( $token )
deleteGetStartedButton ( )
deleteGreetingText ( )
deletePersistentMenu ( )
hubReply ( array $data, $verify_token )
receive ( $data )
removeWhitelistedDomain ( array $domains )
send ( $message, $path = 'me/messages' ) all message objects have toArray on them.
setGetStartedButton ( $payload )
setGreetingText ( $text )
setPersistentMenu ( $menu_items )
user ( $user_id )

Protected Methods

Method Description
addRecipient ( $data, $recipient_id )

Method Details

__construct() public method

public __construct ( $token )

addRecipient() protected method

protected addRecipient ( $data, $recipient_id )

addWhitelistedDomain() public method

public addWhitelistedDomain ( array $domains )
$domains array

create() public static method

public static create ( $token )

deleteGetStartedButton() public method

deleteGreetingText() public method

public deleteGreetingText ( )

deletePersistentMenu() public method

hubReply() public method

public hubReply ( array $data, $verify_token )
$data array

receive() public method

public receive ( $data )

removeWhitelistedDomain() public method

public removeWhitelistedDomain ( array $domains )
$domains array

send() public method

..
public send ( $message, $path = 'me/messages' )

setGetStartedButton() public method

public setGetStartedButton ( $payload )

setGreetingText() public method

public setGreetingText ( $text )

setPersistentMenu() public method

public setPersistentMenu ( $menu_items )

user() public method

public user ( $user_id )

Property Details

$api protected_oe property

protected $api

$notification_type protected_oe property

protected $notification_type