Step 1: Create a Meta Developer App

  1. Go to developers.facebook.com
  2. Log in with your Facebook account
  3. Go to "My Apps" and click "Create App"
  4. Select "Business" as the app type
  5. Name your app (e.g., "Founder CreativeOS")
  6. Select your business account
  7. Click "Create App"

Step 2: Set Up Marketing API

  1. In your app dashboard, find "Add Products" and select "Marketing API"
  2. Click "Set Up"
  3. Grant the following permissions:
  4. Generate an access token with these permissions
  5. Save this token for use in n8n

Step 3: Configure the Meta API Workflow in n8n

  1. Create a new workflow for ad performance tracking
  2. Start with a "Schedule Trigger" node (daily or weekly execution)
  3. Add an "HTTP Request" node for the Graph API:
  4. Add a "Split In Batches" node to iterate through accounts
  5. Add additional HTTP nodes to: