N8N Tools - Facebook Enhanced icon

N8N Tools - Facebook Enhanced

Comprehensive Facebook Graph API integration for N8N workflows

Lead Ads → Export Leads to CSV

AI-generated

Overview

This node integrates with the Facebook Graph API to perform various operations across multiple Facebook resources. Specifically, for the Lead Ads resource and the Export Leads to CSV operation, it exports lead data collected from a specified Facebook Lead Form into CSV format.

This functionality is useful for marketers and sales teams who want to easily extract and download lead information gathered via Facebook Lead Ads forms for further analysis, reporting, or import into other systems.

Practical example:
A marketing team runs Facebook Lead Ads campaigns and wants to export all leads collected from a particular form as a CSV file to upload into their CRM system or share with stakeholders.


Properties

Name Meaning
Form ID The unique identifier of the Facebook Lead Form from which to export leads. This is required to specify which form's leads should be exported.

Output

  • The node outputs JSON data representing the exported leads in CSV format (or a structure that can be converted to CSV).
  • Each item in the output corresponds to one execution input item processed.
  • The json field contains the exported lead data.
  • There is no explicit binary data output indicated for this operation.

Dependencies

  • Requires an active connection to the Facebook Graph API via OAuth2 or API key credentials configured in n8n.
  • Requires a valid subscription and API key for the "N8N Tools API" service, which validates usage before making Facebook API calls.
  • The node uses an internal helper class to interact with Facebook endpoints abstracting direct API calls.

Troubleshooting

  • Invalid Subscription or API Key:
    If the node throws an error about invalid subscription or API key, verify that your N8N Tools API credentials are correct and active.

  • Facebook API Errors:
    Errors related to permissions or invalid Form ID may occur if the provided Form ID does not exist or the connected Facebook account lacks access rights. Double-check the Form ID and ensure the Facebook credentials have sufficient permissions.

  • Rate Limits or Quotas:
    Facebook API rate limits might cause failures when exporting large volumes of leads. Consider batching requests or handling errors gracefully.

  • Empty or Malformed Output:
    If the output is empty or malformed, confirm that the form has leads available and that the API response is correctly handled by the node.


Links and References

Discussion