Now we'll tell Facebook where to send the lead data. This is called a "webhook" β it's like giving Facebook your CRM's mailing address. π¬
π§ What Is a Webhook?
In simple terms:
Someone fills out your Lead Form on Facebook/Instagram
β
Facebook says: "Hey, I got a new lead!"
β
Facebook sends the lead data to YOUR webhook URL
β
Your module receives it and creates the lead in Perfex CRM
A webhook is just a URL on your server that Facebook sends data to. The module creates this URL automatically β you just need to tell Facebook about it.
π Get Your Webhook Details from Perfex
Before going to Facebook, let's grab the details from your module:
Log into Perfex CRM
Go to Meta Leads β Settings in the sidebar
First, enter your App ID and App Secret (from Step 1) and click Save Settings
β οΈ The Callback URL MUST start with https:// β Facebook requires SSL! If your URL starts with http://, you need to install an SSL certificate first.