fb-leads

1.0.4 • Public • Published

FB-LEADS

  • Install the package
$ npm i fb-leads

Usage

  • Generate Api Key from Facebook Developer Console
 
    const FbLeads = require('fb-leads')
 
    FbLeads({
 
    apiKey :""# // Insert api key (mandatory) 
 
    formId:""# // Insert form id (optional) 
 
    pageId : ""# // Insert pageId (optional) 
 
    getLeads : true,
 
    getFormIds : false
 
    },function(response){
 
    # // perform operations 
 
    })
 
 
 
 
 
- While retrieving Form ids -> Insert pageId , set "getFormIds" as true and "getLeads" as false
 
- While retrieving Leads -> Insert formId , set "getLeads" as true and "getFormIds" as false
 

/fb-leads/

    Package Sidebar

    Install

    npm i fb-leads

    Weekly Downloads

    8

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    3.04 kB

    Total Files

    3

    Last publish

    Collaborators

    • nitinmanocha