Hi, I am running a Facebook leads ad that’d present a form to ask users to sign up for our newsletter with their emails.
I want to avoid asking users to click on the ad to jump to my wix-hosted website to input emails to subscribe.
Facebook provides webhook API to give me the lead data: developers. facebook. com/docs/marketing-api/guides/lead-ads/retrieving
How can I feed them into Wix whenever new data comes in?
Then where can I execute the contact create API code(createContact - Velo API Reference - Wix.com)?
Thanks.
You will need to read about how to access 3rd party services in the article Corvid: How to Access 3rd-Party Services with the Fetch API .
You can jump right in and implement an interface to the Facebook API. Or, a nice simple example to start with is Create a Weather Widget . Also, t ake a look at the API examples on the Examples page. A couple of good examples to play with are: Example: Using the Places API from Google Maps services and Example: Send email with the SendGrid REST interface .
I need help too. I am surprized wix does not have zap for lead to contact. Or I am missing?