title: Get the form name of Facebook lead ads using webhook
body: <p>I have two different Facebook leads ad campaigns (A and B) connected to the same F.B page, I've connected it to a webhook following this <a href="https://developers.facebook.com/docs/marketing-api/guides/lead-ads/webhooks/v2.7" rel="nofollow noreferrer">guide</a> using Facebook ads PHP sdk, and pass the leads to my C.R.M, everything works fine, the problem is that <strong>I can't tell if the lead came from form A or B</strong>.</p>
  
  <p>I've tried to pull the from name like this:</p>
  
  <pre><code>$input = json_decode(file_get_contents('php://input'), true);
  if($input)
  {
      $form_id = $input['entry'][0]['changes'][0]['value']['form_id'];
      $form = AdsWebhookHandler::getFormName($form_id);
  }
  </code></pre>
  
  <p><strong>From the <code>AdsWebhookHandler</code>class:</strong></p>
  
  <pre><code>public static function getFormName($form_id)
      {
          $form = new LeadgenForm($form_id);
  
          if(!$form) return $form_id;
  
          return $form-&gt;read();
      }
  </code></pre>
  
  <p>But the form always returns empty (<code>{}</code>) for some reason.
  Does anybody know how can I pull the form name? or even better - is it possible to pass custom hidden fields in the form?</p>
  
  <p>Thank you all for an answer :)</p>