PHP Class mapdev\FacebookMessenger\Components\Button

Inheritance: implements JsonSerializable, use trait mapdev\FacebookMessenger\Traits\HasTitle
Show file Open project: davidpiesse/facebook_messenger_php

Public Properties

Property Type Description
$fallback_url
$is_webview
$is_webview_extended
$payload
$type
$webview_height_ratio

Public Methods

Method Description
__construct ( )
create ( )
jsonSerialize ( )
link_account ( $callback_url )
payload ( $payload )
phone_number ( $number )
postback ( $payload )
share ( ) only for a generic template
toArray ( )
type ( $type )
unlink_account ( )
url ( $url )
webview ( $url, $size )
webview_with_extensions ( $url, $size, $fallback = null )

Method Details

__construct() public method

public __construct ( )

create() public static method

public static create ( )

jsonSerialize() public method

public jsonSerialize ( )

payload() public method

public payload ( $payload )

phone_number() public method

public phone_number ( $number )

postback() public method

public postback ( $payload )

share() public method

only for a generic template
public share ( )

toArray() public method

public toArray ( )

type() public method

public type ( $type )

url() public method

public url ( $url )

webview() public method

public webview ( $url, $size )

webview_with_extensions() public method

public webview_with_extensions ( $url, $size, $fallback = null )

Property Details

$fallback_url public property

public $fallback_url

$is_webview public property

public $is_webview

$is_webview_extended public property

public $is_webview_extended

$payload public property

public $payload

$type public property

public $type

$webview_height_ratio public property

public $webview_height_ratio