Ingestion Architecture
The integration uses Meta Webhook events to trigger instant field retrieval and agent assignment:Meta Business Manager Configuration
To subscribe your Facebook Pages and Instagram Accounts to BrokerOS:- Navigate to Marketing -> Ad Lead Sync -> Connect Meta.
- Authenticate using your Facebook Business Manager credentials.
- Grant the required Meta application permissions:
leads_retrieval: Authorizes downloading form answers.pages_manage_ads: Reads lead form IDs across campaigns.pages_read_engagement: Webhook subscription rights.
- Select the Facebook Pages representing your real estate developments.
Webhook Verification Handshake
BrokerOS automatically fulfills the Meta Webhook challenge handshake:- Callback URL:
https://api.yourdomain.com/api/marketing/ads/meta/webhooks - Verify Token: Configured via
META_WEBHOOK_VERIFY_TOKENin the root.envfile. - Signature Verification: Every incoming webhook payload is verified using the
X-Hub-Signature-256HMAC header computed against your Meta App Secret.
leadgen event immediately whenever a user taps βSubmitβ on an Instagram or Facebook ad.
Real-Time Ad Campaign Attribution
Every ingested lead retains its complete digital advertising lineage:- Campaign Name: For example, Grand_Horizon_Luxury_Penthouse_Launch_2026.
- Ad Set ID: Demographic targeting bracket (for example, Age 30 to 55, Household Income > $150k).
- Ad Creative Name: Image or video creative version (for example, Drone_View_Balcony_Tour_v3).
- Form ID: Specific Instant Form variant used for A/B split testing.