Use Facebook Webhook and Mautic API to automatically create contact in Mautic when a Lead is generated via Facebook ads.
Use platform.php to subscribe to page where you started your facebook lead generation ad. Install Mautic API Library: https://github.com/mautic/api-library Enable and create API credential in Mautic
This was a quick work i didn't validate nor optmize all data and variables.
Here is a video tutorial explaining how to use this files: https://youtu.be/Jr98BOamcGo
I created a new video showing how to Integrate Mautic with facebook leads using Mautic Forms : https://youtu.be/mj4ZYrEjx5c