vswb / facebook-leads-example

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

Make sure:

Install

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

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

Configure

Create a config/config.php with your facebook credentials

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

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

[Not available yet] Please refer to https://gist.github.com/tixastronauta/0b9c3b409a7ba96edffc in the meanwhile

Grabbing Leads from Facebook

[Not available yet] Please refer to https://gist.github.com/tixastronauta/0b9c3b409a7ba96edffc in the meanwhile

About

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


Languages

Language:PHP 99.2%Language:CSS 0.8%