๐Changelog
All notable changes to the Facebook & Instagram Leads Integration module are documented here.
๐ [2.0.0] โ 2026-02-05
โจ Added
๐ฏ Per-Page Lead Assignment โ Assign different staff members to different Pages (leads from Page A go to Alice, leads from Page B go to Bob)
๐ธ Instagram Lead Ads Support โ Full support for Instagram Lead Ads (same webhook, automatic)
๐ง Setup Wizard โ Guided 5-step setup wizard for first-time configuration
๐ Sync History Dashboard โ View all lead syncs with status, timestamps, and details
๐ Connection Test โ One-click button to verify credentials and permissions
๐งช Test Lead โ Send a test lead to verify the integration is working
๐ Duplicate Detection โ Configurable option to prevent importing the same lead twice
๐ Field Mapping Interface โ Visual interface to map custom form fields to Perfex CRM fields
๐ Retry Queue โ Automatic retry mechanism for failed lead syncs
๐ง Email Notifications โ Get notified when new leads arrive from Facebook/Instagram
๐ Webhook Verification Status โ Visual indicator showing if webhook is verified
๐ Statistics Dashboard โ Real-time stats showing sync success/failure rates
๐ Sidebar Navigation โ Easy access to all features from the sidebar
๐ Database Logging โ Comprehensive logging of all sync activities
๐ท๏ธ Custom Field Support โ Map to any Perfex CRM custom field
๐ Changed
๐ก Graph API Version โ Updated from v5.0 to v19.0 (latest stable)
๐ Token Exchange โ Moved to server-side for security (App Secret no longer in JavaScript)
โก Webhook Handler โ Completely rewritten with async processing and instant 200 response
๐จ Settings Interface โ Modern, intuitive design with better organization
๐ Pages Management โ Improved subscription interface with status indicators and lead counts
๐ฌ Error Handling โ Better error messages and user feedback throughout
๐ Fixed
๐ด Critical: Fixed missing Facebook PHP SDK reference
๐ด Critical: Fixed webhook handler session dependency that caused lead loss
๐ Security: Removed App Secret from client-side JavaScript
๐ Security: Added proper input validation and sanitization
๐ Security: Removed debug file writes from production code
๐ Security: Added webhook signature verification (X-Hub-Signature-256)
๐ Bug: Fixed CSRF exclusion (now uses proper hooks instead of config modification)
๐ Bug: Fixed country lookup for international leads
๐๏ธ Removed
Debug file writing functionality
Unused GuzzleHttp import
Legacy settings page view
๐ Security Improvements
All POST endpoints validate CSRF tokens
Access tokens no longer exposed in HTML onclick handlers
App Secret used only server-side
Webhook signature verification enabled
๐ฆ [1.0.0] โ 2020-01-15
โจ Added
๐ Initial release
๐ฑ Basic Facebook & Instagram Lead Ads integration
๐ OAuth connect for page access
๐ก Webhook support for real-time leads
๐ Multiple page monitoring
๐ท๏ธ Custom field synchronization
๐ฎ Planned for Future Releases
๐ Advanced analytics and reporting
๐ Automatic token refresh
๐ฑ Mobile app notifications
๐ Multi-language support
๐ CRM automation triggers on lead import
๐ Lead scoring based on form data
๐๏ธ Per-page lead source & status overrides (database ready, UI coming soon)
Last updated