Property | Type | Description | |
---|---|---|---|
$apiUrl | string | FB Messenger API Url | |
$token | null | string |
Method | Description | |
---|---|---|
__construct ( string $token ) | FbBotApp constructor. | |
deletePersistentMenu ( ) : array | Remove Persistent Menu | |
send ( |
Send Message | |
setPersistentMenu ( |
Set Persistent Menu | |
userProfile ( integer $id, string $fields = 'first_name,last_name,profile_pic,locale,timezone,gender' ) : |
Get User Profile Info |
Method | Description | |
---|---|---|
call ( string $url, array $data, string $type = self::TYPE_POST ) : array | Request to API |
public __construct ( string $token ) | ||
$token | string |
public deletePersistentMenu ( ) : array | ||
return | array |
public setPersistentMenu ( |
||
$buttons | ||
return | array |
public userProfile ( integer $id, string $fields = 'first_name,last_name,profile_pic,locale,timezone,gender' ) : |
||
$id | integer | |
$fields | string | |
return |