Yes you can you well have to add the desired field in your facebook form and edit webhook-forms.php to retrieve the data from your field and send it to Mautic. Example: after line 29 add $lead_city = $data['field_data'][0][values][3]; and after line 38 add $data['city'] = $lead_city;
The last section of the video where you created a test lead to check the implementation (16:53) that doesn't work now when I click the track status it says there Server Failure error code 102
Mounir Q thanks mate I searched the internet for the error and found that Facebook doesn’t allow test lead when your app is in development mode which is weird I will post the link to that stackoverflow issue later I am on phone right now.
@@CarlosMelero I think I just found a solution. I guess you need to send your app to review, and check the manage_pages option. On your developer page, there's a review option. You need to accomplish some requirements and can send. If I receive a response I'll let you know if it worked.
In fact, ignore this error .. just copy an ID page, and go to the next step Consegui!! >>>> developers.facebook.com/docs/facebook-login/access-tokens/?locale=pt_BR#pagetokens
For the ones getting the "Invalid scope: manage_pages" error, just do a POST request manually through the Graph Explorer (to "(page_id)/subscribed_apps" passing the parameter "subscribed_fields: leadgen" Be sure to select the correct dropdown fields shown in the video to first generate the app and page access token PD: in platform.php I also changed "version" to the current Graph Explorer version (right now it's 'v7.0')
Congrats, I made it and worked like a charm. Thank you very much for your time doing this integration and video. In your opinion, which method to integrate Facebook Leads you prefer (API x Forms) ? In your thoughts, what is the main diferences between using this way (using forms) in comparison to the other (using api)? I seems to me that using forms I can work with segmentation and also create different campaigns. Am I right? I did not try to run the API way since this is working perfectly. Thank you again. Best wishes, Lucas Mendes Brazil.
Lucas Marzullo Mendes I think using forms is much better because you can create campaigns based on this forms and start interacting with leads from the moments you receive them.
Oi, Lucas. Você já viu as integrações da Pluga com Mautic + Facebook Lead Ads? Talvez te ajude. Segue o link: pluga.co/automatizacoes/facebook_lead_ads-mautic-novo-contato-criar-atualizar-contato/. 😊
hi thx tons for the videos. do you happen to know any plugin that can integrate with mautic and facebook, google api one click login/ registration pls?
Hi, do you know Pluga? Look at this integration: Facebook Lead Ads + Mautic. Link: pluga.co/automatizacoes/facebook_lead_ads-mautic-novo-contato-criar-atualizar-contato/. I hope I have helped in some way. ;)
Unsupported get request. Object with ID '**************' does not exist, cannot be loaded due to missing permissions, or does not support this operation.
Thanks for this Mounir! Awesome work. How should I proceed if I want to integrate more than one form from different pages? Is this possible or this is limited to one form?
Yes you can duplicate webhook-forms.php and name it something else and follow same steps to connect it to one of your mautic forms. and subscribe new facebook page that you will use with it.
Video is outdated when you go to the platform.php to subscribe to the page you get error (open the browser console and go to networks and monitor the subscription request) it returns this error message: (#100) The parameter subscribed_fields is required.
I have found the issue, when you make login request you have to add ‘lead_retrieval’ (check the spells please) to the scopes object. Basically the peoblem is you need to pass the lead retrieval permission in the login request.
Dear @Mounir Q, in your video and also in my Lead Test the "" is in the "Last Name" field. Also the is in the "First name" field. I tried to invert it without success.
I don't know what happened. After I saw this error, I edited the webhook-forms.php to change the sequence number you explained in the end of the video. The error persisted. I changed back to the original sequence and fixed. Crazy. But it is working with the same sequence you uploaded (not the one presented in the video). I am sharing here if someone has the same error. $lead_first = $data['field_data'][1][values][0]; $lead_last = $data['field_data'][2][values][0]; $lead_email = $data['field_data'][0][values][0]; Thank you again. Best wishes, Lucas
Hi Mounir, did all the steps you mentioned in video to precision, but no test leads coming through to Mautic form.. Could you help? Feel free to message me if needed. Thanks!
Hey @mounir I've managed to get everything up and running. Facebook Test leads gets into mautic without any hassle, but when I run the ads I get none of the leads in mautic. Any suggestion where to look into?
Hi, I have multiple Mautic forms, can you connect multiple Mautic forms to different facebook lead ads, For example connect 3 facebook leads ads to 3 different Mautic forms? Cheers
wildmanmike100 yes for now that's what you need to do. if I have some time maybe in the future I'll make it easier where you can attach and subscribe to many forms with the same file
Olá muito bom seu vídeo, vai nos ajudar muito, no entanto fiz todo procedimento mas quando crio o lead test no Facebook ele vem apenas um campo e geralmente onde esto o numero dois! Por Exemplo: $lead_first = $data['field_data'][1][values][0]; $lead_last = $data['field_data'][2][values][0]; -> apenas este campo aparece no formulário do Mutic! $lead_email = $data['field_data'][0][values][0]; qual será o problema? de onde vem estes números eles são referente a que ? onde posso verifica-los?
Veja o video em 15:45 O certo é : 2 1 0 Isso tem q estar de acordo com teu form. Vc tem q testar (y) mas ele mesmo corrigiu o problema e compartilhou com a gente. $lead_first = $data['field_data'][1][values][0]; $lead_last = $data['field_data'][2][values][0]; -> apenas este campo aparece no formulário do Mutic! $lead_email = $data['field_data'][0][values][0];
Hello there, thanks for your video. When I run the Lead Ads Test, it is a failure with error code 699 and error message :OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104 Could you help me with this?
Thanks for your reply. My host was on secured sever with SSL certificate. By the way, it still works which I received the leads but each lead was tripled in the mautic form. May I know how to solve this?
when accessing webhook-forms.php or anyother facebook file using url it gets downloaded and facebook graphapi is returning { "error": { "message": "(#2201) response does not match challenge, expected value=\"1075217836\", received=\"\u003C?php \/\/ facebook va...\"", "type": "OAuthException", "code": 2201, "fbtrace_id": "CGjqkdF0EL7" } } any idea how to resolve it?
Getting error can you please check this ? " Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions " Here is the screenshot prntscr.com/jnhauh
Keep getting the error below when logging in with fb: Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions
I am trying to get this working - thanks very much for you time BTW - but I get an error when I click the login button - Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions - Any help?
Hello Mounir, everything working fine. Thanks a lot for this video!!!
Thanks for this! Works perfectly.
Is it possible to specify additional field variables? Eg: Country, City...
Yes you can you well have to add the desired field in your facebook form and edit webhook-forms.php to retrieve the data from your field and send it to Mautic.
Example: after line 29 add $lead_city = $data['field_data'][0][values][3]; and after line 38 add $data['city'] = $lead_city;
don't forget to add city to your Mautic form as well
Please may I have some way of contacting you directly? I'd like to ask some questions.
What is your skype id?
Wonderful video. Thanks. I'll try this weekend!
The last section of the video where you created a test lead to check the implementation (16:53) that doesn't work now when I click the track status it says there Server Failure error code 102
I didn't try this for a long time so i am not sure if it still works. Try to troubleshoot the error you might get an answer.
Mounir Q thanks mate I searched the internet for the error and found that Facebook doesn’t allow test lead when your app is in development mode which is weird I will post the link to that stackoverflow issue later I am on phone right now.
Ok cool 👍 thank you for sharing the information
Is it still working?
I get this error in 14:50
Manage_pages permission has been revoked for the app
Same here.
Did you manage to correct this error?
I guess it's not working. I got no answer
@@CarlosMelero I think I just found a solution. I guess you need to send your app to review, and check the manage_pages option. On your developer page, there's a review option. You need to accomplish some requirements and can send.
If I receive a response I'll let you know if it worked.
Thanks!
I will be attentive to your answer.
In fact, ignore this error .. just copy an ID page, and go to the next step
Consegui!! >>>> developers.facebook.com/docs/facebook-login/access-tokens/?locale=pt_BR#pagetokens
For the ones getting the "Invalid scope: manage_pages" error, just do a POST request manually through the Graph Explorer (to "(page_id)/subscribed_apps" passing the parameter "subscribed_fields: leadgen"
Be sure to select the correct dropdown fields shown in the video to first generate the app and page access token
PD: in platform.php I also changed "version" to the current Graph Explorer version (right now it's 'v7.0')
Congrats, I made it and worked like a charm. Thank you very much for your time doing this integration and video.
In your opinion, which method to integrate Facebook Leads you prefer (API x Forms) ?
In your thoughts, what is the main diferences between using this way (using forms) in comparison to the other (using api)? I seems to me that using forms I can work with segmentation and also create different campaigns. Am I right?
I did not try to run the API way since this is working perfectly.
Thank you again.
Best wishes,
Lucas Mendes
Brazil.
Lucas Marzullo Mendes I think using forms is much better because you can create campaigns based on this forms and start interacting with leads from the moments you receive them.
Perfect!!!
Thank you!!!
Oi, Lucas. Você já viu as integrações da Pluga com Mautic + Facebook Lead Ads? Talvez te ajude. Segue o link: pluga.co/automatizacoes/facebook_lead_ads-mautic-novo-contato-criar-atualizar-contato/. 😊
Sucess !!! Ty
David tenemos grupo en FB de Mautic en Español.. búscanos! saludos.
hi thx tons for the videos. do you happen to know any plugin that can integrate with mautic and facebook, google api one click login/ registration pls?
Hi, do you know Pluga? Look at this integration: Facebook Lead Ads + Mautic. Link: pluga.co/automatizacoes/facebook_lead_ads-mautic-novo-contato-criar-atualizar-contato/.
I hope I have helped in some way. ;)
Hello! With test leads works fine, but real leads come with empty data. What could be the problem?
Unsupported get request. Object with ID '**************' does not exist, cannot be loaded due to missing permissions, or does not support this operation.
Thanks for this Mounir! Awesome work. How should I proceed if I want to integrate more than one form from different pages? Is this possible or this is limited to one form?
Yes you can duplicate webhook-forms.php and name it something else and follow same steps to connect it to one of your mautic forms. and subscribe new facebook page that you will use with it.
Video is outdated when you go to the platform.php to subscribe to the page you get error (open the browser console and go to networks and monitor the subscription request) it returns this error message: (#100) The parameter subscribed_fields is required.
I have found the issue, when you make login request you have to add ‘lead_retrieval’ (check the spells please) to the scopes object. Basically the peoblem is you need to pass the lead retrieval permission in the login request.
Hello i can integrate your mautic with facebook contact me @ sidhantverma.93@gmail.com
Dear @Mounir Q, in your video and also in my Lead Test the "" is in the "Last Name" field. Also the is in the "First name" field. I tried to invert it without success.
I don't know what happened. After I saw this error, I edited the webhook-forms.php to change the sequence number you explained in the end of the video. The error persisted. I changed back to the original sequence and fixed. Crazy. But it is working with the same sequence you uploaded (not the one presented in the video). I am sharing here if someone has the same error.
$lead_first = $data['field_data'][1][values][0];
$lead_last = $data['field_data'][2][values][0];
$lead_email = $data['field_data'][0][values][0];
Thank you again.
Best wishes,
Lucas
Lucas Marzullo Mendes
try this:
$lead_first = $data['field_data'][1][values][0];
$lead_last = $data['field_data'][2][values][0];
$lead_email = $data['field_data'][0][values][0];
Thank you Mounir Q. That was exactly what I made. I don't know why it didn't work in the first time. But it's perfect now. Thank you again.
Hi Mounir, did all the steps you mentioned in video to precision, but no test leads coming through to Mautic form.. Could you help? Feel free to message me if needed. Thanks!
Hi Krystian, what is your skype ID?
krystian.jurkowski1, I'm having an issue with getting the email to come through specifically, the rest is coming through!
what is your Skype ID i will help you debug the problem
krystian.jurkowski1
Hey @mounir I've managed to get everything up and running. Facebook Test leads gets into mautic without any hassle, but when I run the ads I get none of the leads in mautic. Any suggestion where to look into?
Goran Ćulibrk Create your Facebook ads on the same page you subscribed to.
I did, does this script has problems with expiration of tokens as well or not? Maybe that's the problem?
Hi, I have multiple Mautic forms, can you connect multiple Mautic forms to different facebook lead ads, For example connect 3 facebook leads ads to 3 different Mautic forms? Cheers
Jono Perl yes you can duplicate webhook-forms.php and name it something else and follow same steps to connect it to one of your mautic forms.
Awesome, that sounds great. Thanks :)
Could you also contact us for help with the new FB 3 api connection please
Hello, we are trying to set up but not working at our end. Is this plug in updated for Facebook changes of 2019? Thanks
Hello i can integrate your mautic with facebook contact me @ sidhantverma.93@gmail.com
Hi Mounir, great video! Can you do it with hosted version of Mautic? No sure how to edit webhooks.php
wildmanmike100 yes you can just host the files in any hosting or vps that support PHP
Hey thanks it worked! But do I repeat the same process for each form/page?
wildmanmike100 yes for now that's what you need to do. if I have some time maybe in the future I'll make it easier where you can attach and subscribe to many forms with the same file
Mounir Q that's brilliant. Final question. ...the access token needs to be updated?
wildmanmike100 check on other comments someone showed how to make the token never expire. just follow the instructions and you need to update it once.
My status doesn't change from "pending". Any ideia of what could be?
i have no idea its something that you have to contact Facebook about try also to send the lead test in different time
Ok, thank you and congrats on the video!
you're welcome!
Olá muito bom seu vídeo, vai nos ajudar muito, no entanto fiz todo procedimento mas quando crio o lead test no Facebook ele vem apenas um campo e geralmente onde esto o numero dois! Por Exemplo:
$lead_first = $data['field_data'][1][values][0];
$lead_last = $data['field_data'][2][values][0];
-> apenas este campo aparece no formulário do Mutic!
$lead_email = $data['field_data'][0][values][0];
qual será o problema? de onde vem estes números eles são referente a que ? onde posso verifica-los?
Veja o video em 15:45
O certo é :
2
1
0
Isso tem q estar de acordo com teu form. Vc tem q testar (y) mas ele mesmo corrigiu o problema e compartilhou com a gente.
$lead_first = $data['field_data'][1][values][0];
$lead_last = $data['field_data'][2][values][0];
-> apenas este campo aparece no formulário do Mutic!
$lead_email = $data['field_data'][0][values][0];
5:44-> Haver error: {
"error": {
"message": "(#2200) Callback verification failed with the following errors: HTTP Status Code = 403; HTTP Message = Forbidden",
"type": "OAuthException",
"code": 2200,
"fbtrace_id": "A5VBn4NUJLqLW6gDsK9W8cN
"
}
}
Hello there, thanks for your video.
When I run the Lead Ads Test, it is a failure with error code 699 and error message :OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
Could you help me with this?
make sure you host your PHP file on a secure server and access the files via
Thanks for your reply. My host was on secured sever with SSL certificate. By the way, it still works which I received the leads but each lead was tripled in the mautic form. May I know how to solve this?
not works
when accessing webhook-forms.php or anyother facebook file using url it gets downloaded and facebook graphapi is returning
{
"error": {
"message": "(#2201) response does not match challenge, expected value=\"1075217836\", received=\"\u003C?php
\/\/ facebook va...\"",
"type": "OAuthException",
"code": 2201,
"fbtrace_id": "CGjqkdF0EL7"
}
}
any idea how to resolve it?
if the webhook-forms.php get downloaded its because you have a problem with your server. your server don't process php files as PHP.
Getting error
can you please check this ?
"
Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions "
Here is the screenshot prntscr.com/jnhauh
same here... could you help us Mounir please? :-)
@@danillorios manage_pages_ads
Keep getting the error below when logging in with fb:
Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions
turn on developer mode
Hello i can integrate your mautic with facebook contact me @ sidhantverma.93@gmail.com
I am trying to get this working - thanks very much for you time BTW - but I get an error when I click the login button - Invalid Scopes: manage_pages. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: developers.facebook.com/docs/facebook-login/permissions - Any help?
Actually ignore this.. it was using an app with other permissions and so it was getting confused... resolved now..
What you do need though is permissions for manage_pages which requires going through FB verification for permissions.
Thanks for the tutorial I'd love to learn more and ask further questions s.k.y.p.e ID dmac_ontop. Keep on inspiring
Wonderful video. Thanks. I'll try this weekend!