jocoonopa/messenger

PHP Library to interact with Facebook Messenger Platform
20,046
Install
composer require jocoonopa/messenger
Latest Version:3.5.50
PHP:>=7.3.0
License:MIT
Last Updated:Aug 28, 2026
Links: GitHub  ·  Packagist
Maintainer: jocoonopa

Messenger

A PHP library to interact with Facebook Messenger Platform

Installation

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');

Basic usage

use Kerox\Messenger\Messenger;

$messenger = new Messenger($appSecret, $verifyToken, $pageToken)
$messenger->send()->message(<USER_ID>, 'Hello world!');

Advance usage

Please, refer to the wiki to learn how to use this library

Features

API

  • Broadcast (deprecated)
  • Code (deprecated)
  • Insights
  • Nlp
  • Persona
  • Profile
  • Send
  • Tag
  • Thread
  • User
  • Webhook

Templates

  • 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

Callback

  • Account Linking
  • AppRoles
  • Checkout Update
  • Delivery
  • GamePlay
  • Message
  • Message Echo
  • Optin
  • PassThreadControl
  • Payment
  • Policy Enforcement
  • Postback
  • Pre Checkout
  • Read
  • Reaction
  • Referral
  • RequestThreadControl
  • TakeThreadControl

Related Packages

harran/botstrap

php sdk for interacting with facebook messenger bot api

3 0
codezero/oauth

Social authentication without the headaches.

64 1
missael-anda/laravel-whatsapp

A Whatsapp Business Cloud API wrapper for Laravel.

8,759 69
cerbero/oauth

OAuth and API helpers for Laravel 4.

411