PHPackages                             silici0/facebook-api - 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. silici0/facebook-api

ActiveLaravel-package[API Development](/categories/api)

silici0/facebook-api
====================

Laravel Wrapper around facebook API SDK

1301PHP

Since Jul 23Pushed 4y ago2 watchersCompare

[ Source](https://github.com/silici0/FacebookApi)[ Packagist](https://packagist.org/packages/silici0/facebook-api)[ RSS](/packages/silici0-facebook-api/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel integration for Facebook API
====================================

[](#laravel-integration-for-facebook-api)

This library provides an objected-oriented wrapper of the PHP classes to send CRM Integration with Facebook API

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

[](#installation)

```
composer require silici0/facebook-api:dev-master

```

Publish Conf File
-----------------

[](#publish-conf-file)

```
php artisan vendor:publish --provider="silici0\FacebookApi\FacebookApiServiceProvider"

```

Configuration
-------------

[](#configuration)

You need pixel\_id and acesss\_token to update your .env file with the follow options:

```
FACEBOOK_PIXEL_ID='ID'
FACEBOOK_ACCESS_TOKEN='TOKEN'

```

Send Test Event
---------------

[](#send-test-event)

Get your event test code and fill like the example below:

```
use silici0\FacebookApi;

$fb = new \FacebookApi();

$response = $fb::sendTest('TEST57893');

$msg = $response->getMessages();
$eventsReceived = $response->getEventsReceived();
$fbTraceId = $response->getFbTraceId();

```

Send CRM Integration
--------------------

[](#send-crm-integration)

To send CRM Integration you need send a Deduplication hash as event ID, so facebook can identify your browser pixel with your server Pixel:

```
$fb = new \FacebookApi();

$data[] = array(
	'user' => array(
		'id' => '1',
		'email' => 'rafael@email.com.br',
		'first_name' => 'rafael',
        'phone' => '1155994267171'
	),
	'custom' => array(
		'lead_event_source' => 'In-house CRM',
		'event_source' => 'crm'
	),
	'event' => array(
		'name' => 'Evento Lead',
		'unixtimestamp' => time(),
        'id' => Hash::make('rafael@email.com.br')
	)
);

$response = $fb::sendCRM($data);
foreach ($response as $key => $value) {
    print("".print_r($value,true)."");
}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

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://www.gravatar.com/avatar/261987ce76cce5e1d43fbde312f1f47c819cba2195ebb1f4955bdff9d12763bb?d=identicon)[silici0](/maintainers/silici0)

---

Top Contributors

[![rafaelgw](https://avatars.githubusercontent.com/u/104240591?v=4)](https://github.com/rafaelgw "rafaelgw (2 commits)")[![silici0](https://avatars.githubusercontent.com/u/61994?v=4)](https://github.com/silici0 "silici0 (1 commits)")

### Embed Badge

![Health badge](/badges/silici0-facebook-api/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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