{
  "name": "Track Facebook Page post Engagement (Comments, Like, Shares) in Google Sheets",
  "nodes": [
    {
      "id": "b938db86-8dd7-445a-8f92-0d81046734a3",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -608,
        352
      ]
    },
    {
      "id": "1213ff29-4b1b-4b71-bb76-afb32304e9d2",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        368,
        352
      ]
    },
    {
      "id": "5cd6ab51-8cde-41e0-91f4-066729f04db0",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        688,
        32
      ]
    },
    {
      "id": "598703c8-9a88-4a09-8c50-812a788c746d",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        688,
        352
      ]
    },
    {
      "id": "f1657659-e735-4735-910e-6952b0f31d61",
      "name": "Loop Over Items2",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        688,
        720
      ]
    },
    {
      "id": "62faf25e-2a7c-47e1-84c2-374c2694c9d5",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1424,
        48
      ]
    },
    {
      "id": "a5390558-7e9f-42d1-a792-82b3fee37875",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1424,
        368
      ]
    },
    {
      "id": "9948a1c1-428a-42ea-8d38-a06aff4f58fe",
      "name": "Wait2",
      "type": "n8n-nodes-base.wait",
      "position": [
        1408,
        736
      ]
    },
    {
      "id": "c5754ded-c608-41c9-899c-9d81fa87f9f3",
      "name": "Set Max Posts",
      "type": "n8n-nodes-base.set",
      "position": [
        -320,
        352
      ]
    },
    {
      "id": "582164d9-ff55-4e63-a76b-341a3ec6f978",
      "name": "Get Page Info",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -16,
        352
      ]
    },
    {
      "id": "e9eeb903-18d3-406e-8536-691302905564",
      "name": "Get Page Feed",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        160,
        352
      ]
    },
    {
      "id": "9b882dd0-9e3e-4501-9461-c1373b3294e4",
      "name": "Get comments",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        960,
        48
      ]
    },
    {
      "id": "c6c2c7eb-8a22-4ff4-b7b0-a0ee1b2468cc",
      "name": "Get Likes",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        960,
        368
      ]
    },
    {
      "id": "836f8e5f-3606-4a4d-ab47-1a4c30f8537f",
      "name": "Get Shares",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        944,
        736
      ]
    },
    {
      "id": "033ead37-39a4-474d-be9c-e09ebfe6f6f6",
      "name": "Add n. likes",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1216,
        368
      ]
    },
    {
      "id": "f8b05bc9-1cf6-4272-8f77-e54f38b0659b",
      "name": "Add n. comments",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1216,
        48
      ]
    },
    {
      "id": "4d2c1a4c-7c79-41d9-bf34-90a51a1c7d9d",
      "name": "Add n. shares",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1200,
        736
      ]
    },
    {
      "id": "eabe79a2-53a4-4bf8-a9fe-ca5f8acb2ca7",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        -656
      ],
      "parameters": {
        "width": 752,
        "height": 848,
        "content": "## Facebook Page Posts Engagement Tracker Automation with Google Sheets\n\nThis workflow automatically **retrieves engagement data (likes, comments, and shares) from a Facebook Page** and stores the res"
      }
    },
    {
      "id": "04bc34cd-892b-4620-8bdf-dabf03f0c407",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        224
      ],
      "parameters": {
        "width": 288,
        "height": 320,
        "content": "## STEP 1 - Set Max Posts\n\nSet number max posts to analyze"
      }
    },
    {
      "id": "c0b431d1-78e5-4609-b6b4-39a3ce3fa6fc",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        224
      ],
      "parameters": {
        "width": 432,
        "height": 320,
        "content": "## STEP 2 - Obtain Access Token\n\nGet a temporary [access token](https://developers.facebook.com/tools/explorer/) for your Facebook Page\n"
      }
    },
    {
      "id": "25110bdd-1a9c-4337-a21a-fb946a687a55",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        -64
      ],
      "parameters": {
        "width": 960,
        "height": 336,
        "content": "## STEP 3- Get Facebook Comments"
      }
    },
    {
      "id": "93e35405-0406-429a-bef5-0a9f678f0bd0",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        304
      ],
      "parameters": {
        "width": 960,
        "height": 288,
        "content": "## STEP 4- Get Facebook Likes"
      }
    },
    {
      "id": "394c59a7-5fdb-4624-aade-bcc4ac020ba8",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        640
      ],
      "parameters": {
        "width": 960,
        "height": 336,
        "content": "## STEP 5 - Get Facebook Shares"
      }
    },
    {
      "id": "a73f7c0b-8cc4-4e5a-ad45-bb3c3b5e297b",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1184,
        -656
      ],
      "parameters": {
        "width": 736,
        "height": 736,
        "content": "## MY NEW YOUTUBE CHANNEL\n👉 [Subscribe to my new **YouTube channel**](https://youtube.com/@n3witalia). Here I’ll share videos and Shorts with practical tutorials and **FREE templates for n8n**.\n\n[![im"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Likes": {
      "main": [
        [
          {
            "node": "Add n. likes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          },
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Shares": {
      "main": [
        [
          {
            "node": "Add n. shares",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add n. likes": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get comments": {
      "main": [
        [
          {
            "node": "Add n. comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add n. shares": {
      "main": [
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Page Feed": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Page Info": {
      "main": [
        [
          {
            "node": "Get Page Feed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Max Posts": {
      "main": [
        [
          {
            "node": "Get Page Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add n. comments": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Get comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [],
        [
          {
            "node": "Get Likes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items2": {
      "main": [
        [],
        [
          {
            "node": "Get Shares",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Set Max Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}