fb-leads
v1.0.4
Published
get fb leads in json
Downloads
8
Maintainers
Readme
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