fb-leads
Version:
get fb leads in json
43 lines (20 loc) • 683 B
Markdown
- Install the package
```bash
$ npm i fb-leads
```
- Generate Api Key from Facebook Developer Console
```bash
const FbLeads = require('fb-leads')
FbLeads({
apiKey :"",
formId:"",
pageId : "",
getLeads : true,
getFormIds : false
},function(response){
})
- 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