๐Ÿ“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