PHPackages                             koolsam/facebook-leads-example - 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. koolsam/facebook-leads-example

ActiveLibrary

koolsam/facebook-leads-example
==============================

Complete example on how to grab leads from Facebook Ad Leads

010PHP

Since Nov 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/koolsam/facebook-leads-example)[ Packagist](https://packagist.org/packages/koolsam/facebook-leads-example)[ RSS](/packages/koolsam-facebook-leads-example/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Facebook Leads Example
======================

[](#facebook-leads-example)

Full running example on how to retrieve leads from Facebook's Lead Ads

1 - Retrieving Facebook Access Tokens and Subscribing App do Page
=================================================================

[](#1---retrieving-facebook-access-tokens-and-subscribing-app-do-page)

On this section you'll learn how to:

- Grant an App access to manage your Facebook Pages
- Retrieve a lifetime Page Access Token
- Subscribe an App to a Page

Before you start
----------------

[](#before-you-start)

Make sure:

- You have already created a [Facebook Web App](https://developers.facebook.com/)
- You already own a [Facebook Page](https://www.facebook.com/pages/create/)
- You are running at least PHP 5.4

Install
-------

[](#install)

All required files for this demo can be installed via composer via composer:

```
$ composer require "tixastronauta/facebook-leads-example:0.1.0"
```

Configure
---------

[](#configure)

Create a **config/config.php** with your facebook credentials

```
$ cp config/config.php.sample config/config.php

```

Execute
-------

[](#execute)

Point your http server to **web/**

**Note**: This script must be installed on the same domain you've ser for your Facebook App

2 - Setting up a Facebook Webhook handler
=========================================

[](#2---setting-up-a-facebook-webhook-handler)

\[Not available yet\] Please refer to  in the meanwhile

Grabbing Leads from Facebook
============================

[](#grabbing-leads-from-facebook)

\[Not available yet\] Please refer to  in the meanwhile

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

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

### Embed Badge

![Health badge](/badges/koolsam-facebook-leads-example/health.svg)

```
[![Health](https://phpackages.com/badges/koolsam-facebook-leads-example/health.svg)](https://phpackages.com/packages/koolsam-facebook-leads-example)
```

PHPackages © 2026

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