A PHP library to interact with Facebook Messenger Platform
You can install Messenger using Composer:
composer require kerox/messenger
You will then need to:
- run
composer install
to get these dependencies added to your vendor directory - add the autoloader to your application with this line:
require('vendor/autoload.php');
use Kerox\Messenger\Messenger;
$messenger = new Messenger($appSecret, $verifyToken, $pageToken)
$messenger->send()->message(<USER_ID>, 'Hello world!');
Please, refer to the wiki to learn how to use this library
- Broadcast (deprecated)
- Code (deprecated)
- Insights
- Nlp
- Persona
- Profile
- Send
- Tag
- Thread
- User
- Webhook
- Airline Boarding Pass
- Airline Check In
- Airline Itinerary
- Airline Update
- Buttons
- Account Link
- Account Unlink
- Nested (deprecated)
- Payment
- Phone Number
- Postback
- Share (deprecated)
- Web Url
- Generic
- List (deprecated)
- Media
- Receipt
- Account Linking
- AppRoles
- Checkout Update
- Delivery
- GamePlay
- Message
- Message Echo
- Optin
- PassThreadControl
- Payment
- Policy Enforcement
- Postback
- Pre Checkout
- Read
- Reaction
- Referral
- RequestThreadControl
- TakeThreadControl