PHPackages                             denise92/facebook-message - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. denise92/facebook-message

ActiveProject[API Development](/categories/api)

denise92/facebook-message
=========================

Facebook messenger-platform with Laravel

130

Since Dec 17Compare

[ Source](https://github.com/denise92/laravel-facebook-message)[ Packagist](https://packagist.org/packages/denise92/facebook-message)[ RSS](/packages/denise92-facebook-message/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Facebook Message
========================

[](#laravel-facebook-message)

> Laravel 5 Package for Facebook messenger-platform with Laravel.

> This is package for Laravel and Lumen 5.0, 5.1, 5.2, &amp; 5.3

> **Note:** Before you start, you should follow Facebook message setup.

1. [Create an App and a Page](https://developers.facebook.com/docs/messenger-platform/guides/setup)
2. Have a https:// url.

Installation
------------

[](#installation)

[PHP](https://php.net) 5.5.9+, and [Composer](https://getcomposer.org) are required.

Add the Laravel Facebook Message package to your `composer.json` file.

```
{
    "require": {
        "denise92/facebook-message": "dev-master"
    }
}
```

You'll then need to run `composer update` to download it and have the autoloader updated.

### Service Provider

[](#service-provider)

In your app config, add the `FacebookMessageServiceProvider` to the providers array.

```
'providers' => [
    Denise92\FacebookMessage\FacebookMessageServiceProvider::class,
    ];
```

For **Lumen**, add the provider to your `bootstrap/app.php` file.

```
$app->register(Denise92\FacebookMessage\FacebookMessageServiceProvider::class);
```

### Configuration File

[](#configuration-file)

After [Create an App and a Page](https://developers.facebook.com/docs/messenger-platform/guides/setup), you'll need to provide the app ID, page ID and Access token. In Laravel you can publish the configuration file with `artisan`.

```
$ php artisan vendor:publish
```

> **Where's the file?** Laravel 5 will publish the config file to `/config/facebook_message.php`.

In **Lumen** you'll need to manually copy the config file from `vendor/denise92/facebook-message/src/config/FacebookMessage.php`, and rename to `facebook_message.php` in your config folder. Lumen doesn't have a `/config` folder by default so you'll need to create it if you haven't already.

#### Required config values

[](#required-config-values)

You'll need to update the `fb_app_id`, `fb_page_id` and `fb_access_token` values in the config file with [your app ID, page ID and access token](https://developers.facebook.com/apps).

By default the configuration file will look to environment variables for your app ID and secret. It is recommended that you use environment variables to store this info in order to protect your app secret from attackers. Make sure to update your `/.env` file with your app ID &amp; secret.

```
FB_APP_ID=1234567890
FB_PAGE_ID=987654321
FB_VERIFY_TOKEN=any-string-you-like
FB_ACCESS_TOKEN=YourPagesAccessToken

```

### How to setup webhook from Facebook:

[](#how-to-setup-webhook-from-facebook)

Callback URL:

This url is defined in src/route.php, you can rewrite it if you like:

```
Route::get('test/webhook', '\Denise92\FacebookMessage\FacebookMessageController@webhook');
Route::post('test/webhook', '\Denise92\FacebookMessage\FacebookMessageController@conversation');

```

Verify Token: any-string-you-like

Subscription Fields: You can checked all.

Then press Save button. If Facebook get the verify code from , than you can start chat with your Pages message bot now.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5656509?v=4)[Denise](/maintainers/denise92)[@denise92](https://github.com/denise92)

### Embed Badge

![Health badge](/badges/denise92-facebook-message/health.svg)

```
[![Health](https://phpackages.com/badges/denise92-facebook-message/health.svg)](https://phpackages.com/packages/denise92-facebook-message)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
