Send Lead Info from Meta to Backend

How to register as a developer, how to use the app dashboard to configure your app, and how to build, test, and release your app

1. Register as meta developer
  Login to Facebook and open fb developers page

2. Create App with Meta
  The App provides your backend with the credentials needed to authenticate with Meta's API
  https://developers.facebook.com/apps/ > Get Started > Complete Registration
  app name(crm) >
   Use case(Create & Manage app ads with Meta Ads Manager) > Next > Which business portfolio do you want to connect to this app? (I don’t want to connect a business portfolio yet.)
   Use Case(Authenticate and request data from users with Facebook Login)   You will reach App Dashboard Page

3. Dashboard > App Settings(Left bottom) > Basic. This is required for Access Token Generation
  Display Name(CRM)
  Namespace(ydadigitals)
  App domains(ydadigitals.com)
  Contact Email(abc@gmail.com)
  Privacy Policy URL(https://ydadigitals.com/privacy-policy.html)
  Terms of Service URL(https://ydadigitals.com/terms-of-service.html)
  User data deletion(https://ydadigitals.com/data-deletion.html)
  Email(abc@gmail.com)
  App Icon(Create Exactly 1024x1024 pixel image using paint) & upload
4. Business Portfolio:
  Create a business portfolio. Add your information in the pop-up.
  A connected business to app is required

5. Publish the App
6. Access Token
  Dashboard > Docs > Graph API Explorer > Generate Access Token
3. Create Instant Form
  What is Instant Form? lead collection form. It lives on your Page and will be attached to your ads. The form is what users actually fill out.
  https://business.facebook.com/ > Select your Page > All Tools(From Menu) > Search(Instant Forms) > Create Form.
5. Graph API Explorer(Webhooks)
Meta Official Doc
What is Webhook
  This is the method by which Meta sends the Lead information to Clients(ie backend server)
Create Webhooks
  App Dashboard > Tools > Graph API Explorer > DropDown on Right(App selected CRM) > Generate Access Token (User or Page)
6. Create sample App on Heroku. https://developers.facebook.com/docs/graph-api/webhooks/sample-apps