AutomationFlowsSocial Media › Extract Facebook Group Posts with Airtop

Extract Facebook Group Posts with Airtop

ByAirtop @cesar-at-airtop on n8n.io

Extracting content from Facebook Groups allows community managers, marketers, and researchers to gather insights, monitor discussions, and collect engagement metrics efficiently. This automation streamlines the process of retrieving non-sponsored post data from group feeds.

Event trigger★☆☆☆☆ complexity3 nodesForm TriggerAirtop
Social Media Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ Added:

This workflow corresponds to n8n.io template #5138 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "1LBhz8JFWZgT5cui",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Facebook Group Scraper",
  "tags": [],
  "nodes": [
    {
      "id": "22789f80-781f-42c4-89c4-ebbf32745a05",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "options": {},
        "formTitle": "Facebook Group Scraper",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Facebook Group URL",
              "placeholder": "The URL of the Facebook Group feed you want to scrape",
              "requiredField": true
            },
            {
              "fieldLabel": "Airtop Profile",
              "placeholder": "Airtop Profile authenticated to Facebook",
              "requiredField": true
            }
          ]
        },
        "formDescription": "This automation will extract information from a Facebook group"
      },
      "typeVersion": 2.2
    },
    {
      "id": "31c32d54-5fe3-4125-9e29-029a1c955822",
      "name": "Airtop",
      "type": "n8n-nodes-base.airtop",
      "position": [
        220,
        0
      ],
      "parameters": {
        "url": "={{ $json['Facebook Group URL'] }}",
        "prompt": "This is a Facebook group feed. \nExtract up to 5 non-sponsored posts, for each post extract:\n - Post text\n- Post URL\n- Page/profile URL\n- Timestamp\t\n- Number of likes \n- Number if shares\n- Number of comments\n- Page or profile details\t\n- Post thumbnail",
        "resource": "extraction",
        "profileName": "={{ $json['Airtop Profile'] }}",
        "sessionMode": "new",
        "additionalFields": {
          "outputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"posts\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"post_text\": {\n            \"type\": \"string\",\n            \"description\": \"The text content of the post.\"\n          },\n          \"post_url\": {\n            \"type\": \"string\",\n            \"description\": \"The URL of the post.\"\n          },\n          \"page_profile_url\": {\n            \"type\": \"string\",\n            \"description\": \"The URL of the page or profile that made the post.\"\n          },\n          \"timestamp\": {\n            \"type\": \"string\",\n            \"description\": \"The timestamp of when the post was made.\"\n          },\n          \"number_of_likes\": {\n            \"type\": \"integer\",\n            \"description\": \"The number of likes the post has received.\"\n          },\n          \"number_of_shares\": {\n            \"type\": \"integer\",\n            \"description\": \"The number of times the post has been shared.\"\n          },\n          \"number_of_comments\": {\n            \"type\": \"integer\",\n            \"description\": \"The number of comments on the post.\"\n          },\n          \"page_profile_details\": {\n            \"type\": \"string\",\n            \"description\": \"Details about the page or profile that made the post.\"\n          },\n          \"post_thumbnail\": {\n            \"type\": \"string\",\n            \"description\": \"The URL of the post's thumbnail image.\"\n          }\n        },\n        \"required\": [\n          \"post_text\",\n          \"post_url\",\n          \"page_profile_url\",\n          \"timestamp\",\n          \"number_of_likes\",\n          \"number_of_shares\",\n          \"number_of_comments\",\n          \"page_profile_details\",\n          \"post_thumbnail\"\n        ],\n        \"additionalProperties\": false\n      }\n    }\n  },\n  \"required\": [\n    \"posts\"\n  ],\n  \"additionalProperties\": false,\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\"\n}",
          "paginationMode": "infinite-scroll",
          "parseJsonOutput": true
        }
      },
      "credentials": {
        "airtopApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8ada5770-7a77-4e75-8342-f0cad8146e4d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        -680
      ],
      "parameters": {
        "color": 5,
        "width": 820,
        "height": 1380,
        "content": "README\n\n# Facebook Group Scraper\n\n## Use Case\n\nExtracting content from Facebook Groups allows community managers, marketers, and researchers to gather insights, monitor discussions, and collect engagement metrics efficiently. This automation streamlines the process of retrieving non-sponsored post data from group feeds.\n\n## What This Automation Does\n\nThis automation extracts key post details from a Facebook Group feed using the following input parameters:\n\n* **Facebook Group URL**: The URL of the Facebook Group feed you want to scrape.\n* **Airtop Profile**: The name of your [Airtop Profile](https://portal.airtop.ai/browser-profiles) authenticated to Facebook.\n\nIt returns up to 5 non-sponsored posts with the following attributes for each:\n\n* Post text\n* Post URL\n* Page/profile URL\n* Timestamp\n* Number of likes\n* Number of shares\n* Number of comments\n* Page or profile details\n* Post thumbnail\n\n## How It Works\n\n1. **Form Trigger**: Collects the Facebook Group URL and Airtop Profile via a form.\n2. **Browser Automation**:\n\n   * Initiates a new browser session using Airtop.\n   * Navigates to the provided Facebook Group feed.\n   * Uses an AI prompt to extract post data, including interaction metrics and profile information.\n3. **Structured Output**: The results are returned in a defined JSON schema, ready for downstream use.\n\n## Setup Requirements\n\n1. [Airtop API Key](https://portal.airtop.ai/api-keys) \u2014 Free to generate.\n2. An [Airtop Profile](https://portal.airtop.ai/browser-profiles) logged into Facebook.\n3. An [n8n instance](https://n8n.io/) with the Airtop integration enabled.\n\n## Next Steps\n\n* **Integrate With Analytics Tools**: Feed the output into dashboards or analytics platforms to monitor community engagement.\n* **Automate Alerts**: Trigger notifications for posts matching certain criteria (e.g., high engagement, keywords).\n* **Combine With Comment Automation**: Extend this to reply to posts or engage with users using other Airtop automations.\n\nLet me know if you\u2019d like this saved as a `.md` file or included in your Airtop automation library.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "33402a6d-082e-4fb9-8ad0-90275049a366",
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "Airtop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Extracting content from Facebook Groups allows community managers, marketers, and researchers to gather insights, monitor discussions, and collect engagement metrics efficiently. This automation streamlines the process of retrieving non-sponsored post data from group feeds.

Source: https://n8n.io/workflows/5138/ — original creator credit. Request a take-down →

More Social Media workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Social Media

Convert YouTube videos into SEO-friendly blog posts in just seconds using this fully automated n8n workflow. Perfect for content creators, marketers, educators, and bloggers looking to repurpose video

Form Trigger, Google Docs, HTTP Request
Social Media

Marketing teams, agencies, and businesses who regularly create tens or hundreds of Facebook ads and store their creative assets in Google Drive.

Facebook Graph Api, Error Trigger, Stop And Error +4
Social Media

Automates posting to Facebook Groups via Airtop browser automation. Reads group links from Google Sheets, opens each group in a logged-in Airtop profile, types your prepared message, and submits with

Airtop, Google Sheets, Telegram Trigger
Social Media

Content creators, AI video enthusiasts, and digital marketers who want to analyze successful short-form videos and understand their production techniques. Perfect for anyone looking to reverse-enginee

Form Trigger, HTTP Request, Slack
Social Media

This n8n template demonstrates how to generate subtitle overlays for YouTube videos and save the final files to Google Drive. It is useful when you want accessible video outputs without manually editi

@Videodb/N8N Nodes Videodb, HTTP Request, Form Trigger +1