{
  "name": "Get comments from Facebook page",
  "nodes": [
    {
      "id": "a9c1f0fb-396e-4c36-92d4-ec3eeb36c644",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        600,
        240
      ]
    },
    {
      "id": "9031abae-aaa0-4602-8fb1-29e89c73f3e8",
      "name": "Split Out Comments",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2400,
        240
      ]
    },
    {
      "id": "c8216862-1d39-47e6-b59e-cf1fb17f7226",
      "name": "Filter Out Null Comments",
      "type": "n8n-nodes-base.filter",
      "position": [
        2180,
        240
      ]
    },
    {
      "id": "076c0619-21de-48df-83fa-f2ba5f8be2e2",
      "name": "Select Result Field",
      "type": "n8n-nodes-base.set",
      "position": [
        2640,
        240
      ]
    },
    {
      "id": "508cb3fa-5246-415c-97f8-c4f6575e45d5",
      "name": "Split Out Posts",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1360,
        240
      ]
    },
    {
      "id": "ff6b3011-fd82-454e-a8f5-6b1a91221d0b",
      "name": "Facebook Graph API : Get Post from Page",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1120,
        240
      ]
    },
    {
      "id": "b8464152-d35f-44dc-9a2a-56a128b670e9",
      "name": "Facebook : Get Each Post Comments",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1680,
        160
      ]
    },
    {
      "id": "470bc675-fab6-45d8-afe9-05c35576c210",
      "name": "Merge Post & Comments",
      "type": "n8n-nodes-base.merge",
      "position": [
        2000,
        240
      ]
    },
    {
      "id": "c47c1f49-1343-423e-bce9-4cbdf8a2f6cc",
      "name": "Reverse Item to Match another Branch",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        400
      ]
    },
    {
      "id": "02092b77-7ae0-4fc3-8f3c-1c4428d95709",
      "name": "Set PageID & Number of Latest Posts",
      "type": "n8n-nodes-base.set",
      "position": [
        860,
        240
      ]
    },
    {
      "id": "788ab34e-fb5e-4bd0-8d1d-781062788f80",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        100
      ],
      "parameters": {
        "width": 263.6017705489105,
        "height": 358.9292089122457,
        "content": "## Set Parameter Here\nSet Facebook PageID & Number of Latest Posts to be fetched here\n"
      }
    }
  ],
  "connections": {
    "Split Out Posts": {
      "main": [
        [
          {
            "node": "Facebook : Get Each Post Comments",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reverse Item to Match another Branch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Comments": {
      "main": [
        [
          {
            "node": "Select Result Field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Post & Comments": {
      "main": [
        [
          {
            "node": "Filter Out Null Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Out Null Comments": {
      "main": [
        [
          {
            "node": "Split Out Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Facebook : Get Each Post Comments": {
      "main": [
        [
          {
            "node": "Merge Post & Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set PageID & Number of Latest Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set PageID & Number of Latest Posts": {
      "main": [
        [
          {
            "node": "Facebook Graph API : Get Post from Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reverse Item to Match another Branch": {
      "main": [
        [
          {
            "node": "Merge Post & Comments",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Facebook Graph API : Get Post from Page": {
      "main": [
        [
          {
            "node": "Split Out Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}