Download the PHP package whotrades/fb-messenger-sdk without Composer
On this page you can find all versions of the php package whotrades/fb-messenger-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whotrades/fb-messenger-sdk
More information about whotrades/fb-messenger-sdk
Files in whotrades/fb-messenger-sdk
Package fb-messenger-sdk
Short Description Facebook Messenger Bot php sdk
License MIT
Informations about the package fb-messenger-sdk
Facebook Messenger Bot PHP
Implementation of the Facebook Messenger Platform API.
Still under development...
Install:
Via composer:
Usage:
Create a Messenger instance
Send a simple text message to a user:
Send a message with quick replies
Send a more complex message with a Generic
template
Horizontal scrollable carousel of items
Send a more complex message with a Receipt
template
Send a more complex message with a List
template
Note: See the Facebook Messenger Platform List Template limitations.
Buttons message
Image Message
Get user profile
Set typing indicators or send read receipts
Webhook setup
When you setup a Callback URL
in your app, Facebook need to validate this entry point.
In this process you must define a Verify Token
Your job is to compare the received verify token and the one you setup them return the challenge given.
Here is how to easily handle the whole process:
Webhook listening
We assume that we receive this payload from Facebook:
Basic usage
Advanced usage
Thread Settings
Set greeting text
Set started button
Set a Persistent Menu
Page action
Subscribe bot to a page
And more other cool things...
Todo
- [ ] Improve document
- [ ] Add Airline template
All versions of fb-messenger-sdk with dependencies
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.2
symfony/event-dispatcher Version ^4.4|^5.3
symfony/polyfill-php80 Version ^1.23
symfony/polyfill-php81 Version ^1.23