Issue in Sending Facebook Leads to Telegram Group.

hypethatup

Member
Your Workflow URL
https://connect.pabbly.com/v2/app/workflow/share/AEgHNVIFBGdfFQdtVTBWcQwYBgJUDQNgU0pTQQMMVCwGXFMGUxJaMF0RBScDRFc2A0oEblMPADwJHQIGUAZSIVZPBwVTUF0nBksFfgdkDzwAXgcvUjM#
Consent to Access & Modify
I authorize Pabbly Support to log in to my account and make changes to the specified workflow for troubleshooting.
In Pabbly Connect, I'm using 'Facebook Lead Ad' under trigger to fetch Facebook Leads and in Action, I'm using Telegram Bot to send the leads to Telegram Group. (Facebook Leads --> Telegram Group)

Since few days, Facebook has stopped/disabled its 'Preview Form' option in Lead Ads Testing Tool (https://developers.facebook.com/tools/lead-ads-testing), the only way to create a test lead is by using their default button of 'Create Lead', which sends dummy lead that has <test> attribute. (See the attached screenshot)


This dummy lead has dummy data like <test lead: dummy data for full_name>, <test lead: dummy data for phone> which is creating an Error Code 400 and says 'Bad Request: can't parse entities: Unsupported start tag "test" at byte offset 17' (See the attached screenshot)

How to solve this error? (Also, this issue is because Telegram doesn't support <test> attribute, I tried same forwarding leads to Google Sheets and that works. This is only because Telegram API doesn't support <test> as a valid HTML tag. Also, I don't want to implement any text formatter as the real leads will not have <test> tag, it is only for our testing that the workflow is working properly, and leads are received on Telegram.)
 

Attachments

  • 13.JPG
    13.JPG
    50 KB · Views: 3
  • 12.JPG
    12.JPG
    23.8 KB · Views: 3

Preeti Paryani

Well-known member
Staff member
Hi @hypethatup,

No worries — you can test this using actual form data instead of the dummy <test> lead from the Lead Ads Testing Tool.

Here’s how you can do it:
  1. Log in to your Facebook Business account using:
    https://business.facebook.com/ (or facebook.com).
  2. Go to All ToolsInstant Forms.
  3. Open the specific form for which you want to generate the lead.
  4. Inside the form settings, you will find a Test Form Link option.
    Use this link to manually fill out the form with proper details (real text instead of dummy <test> values).
  5. Submit the form, and it will generate a proper test lead without the <test> HTML tag.
1771497156896.png


1771497167347.png


Before trying this process, make sure you delete any previously generated test leads from the testing tool to avoid confusion during testing.

This way, the data sent to Telegram will not contain unsupported <test> tags, and the Error 400 issue should be resolved.

Please try this and let us know how it goes.
 
Top