Skip to content

Instantly share code, notes, and snippets.

@shraey96
Created January 25, 2026 16:16
Show Gist options
  • Select an option

  • Save shraey96/cfe4085fb69b764361cc831f62036b23 to your computer and use it in GitHub Desktop.

Select an option

Save shraey96/cfe4085fb69b764361cc831f62036b23 to your computer and use it in GitHub Desktop.
template_4498 - Automated Instagram posting with Facebook Graph API and content routing Who is this for? This workfl
{
"meta": {
"instanceId": "353ac65d120d2007b8a1503e85a96651a9b2cbb94b0334693ebac2129fa6a7ee",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "b4438922-5dfd-44a7-838b-1d91be3dd032",
"name": "Container HTTP Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
-4220,
240
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $json.node }}/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "image_url",
"value": "={{ $json.image_url }}"
},
{
"name": "caption",
"value": "={{ $json.caption }}"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "9350ff43-ae98-4165-98cc-2781937ca2af",
"name": "Container HTTP Reels",
"type": "n8n-nodes-base.httpRequest",
"position": [
-4220,
1500
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $json.node }}/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "media_type",
"value": "=REELS"
},
{
"name": "video_url",
"value": "={{ $json.video_url }}"
},
{
"name": "caption",
"value": "={{ $json.caption }}"
},
{
"name": "cover_url",
"value": "={{ $json.cover_image }}"
},
{
"name": "audio_name",
"value": "Monody (feat. Laura Brehm)"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "4706d54a-b294-46af-b6af-ee4b751af246",
"name": "Container FB Image",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
-4220,
440
],
"parameters": {
"edge": "media",
"node": "={{ $json.node }}",
"options": {
"queryParameters": {
"parameter": [
{
"name": "caption",
"value": "={{ $json.caption }}"
},
{
"name": "image_url",
"value": "={{ $json.image_url }}"
}
]
}
},
"graphApiVersion": "v22.0",
"httpRequestMethod": "POST"
},
"credentials": {
"facebookGraphApi": {
"id": "credential-id",
"name": "facebookGraphApi Credential"
}
},
"typeVersion": 1
},
{
"id": "bc067bab-2652-4667-a0bc-afe1bc009af0",
"name": "Container FB Story Image",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
-4220,
840
],
"parameters": {
"edge": "media",
"node": "={{ $json.node }}",
"options": {
"queryParameters": {
"parameter": [
{
"name": "caption",
"value": "={{ $json.caption }}"
},
{
"name": "image_url",
"value": "={{ $json.image_url }}"
},
{
"name": "media_type",
"value": "STORIES"
}
]
}
},
"graphApiVersion": "v22.0",
"httpRequestMethod": "POST"
},
"credentials": {
"facebookGraphApi": {
"id": "credential-id",
"name": "facebookGraphApi Credential"
}
},
"typeVersion": 1
},
{
"id": "0781252a-0145-4659-9c53-7ad130842711",
"name": "Container HTTP Story Image",
"type": "n8n-nodes-base.httpRequest",
"position": [
-4220,
680
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $json.node }}/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "media_type",
"value": "=STORIES"
},
{
"name": "image_url",
"value": "={{ $json.image_url }}"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "f47c2dcc-e0d1-457e-8741-c5952cf61606",
"name": "Container FB Reels",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
-4220,
1640
],
"parameters": {
"edge": "media",
"node": "=17841456545908024",
"options": {
"queryParameters": {
"parameter": [
{
"name": "caption",
"value": "={{ $json.caption }}"
},
{
"name": "video_url",
"value": "={{ $json.video_url }}"
},
{
"name": "media_type",
"value": "REELS"
},
{
"name": "cover_url",
"value": "={{ $json.cover_image }}"
}
]
}
},
"graphApiVersion": "v22.0",
"httpRequestMethod": "POST"
},
"credentials": {
"facebookGraphApi": {
"id": "credential-id",
"name": "facebookGraphApi Credential"
}
},
"typeVersion": 1
},
{
"id": "fa81d7f3-d5c0-402d-8741-70b09656a5fc",
"name": "Container HTTP Story Video",
"type": "n8n-nodes-base.httpRequest",
"position": [
-4220,
1080
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $json.node }}/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "media_type",
"value": "=STORIES"
},
{
"name": "video_url",
"value": "={{ $json.video_url }}"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "f6a8ec74-68f2-4b9e-a5dc-b3f0d7ecf5d2",
"name": "Container FB Story Video",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
-4220,
1240
],
"parameters": {
"edge": "media",
"node": "={{ $json.node }}",
"options": {
"queryParameters": {
"parameter": [
{
"name": "video_url",
"value": "={{ $json.video_url }}"
},
{
"name": "media_type",
"value": "STORIES"
}
]
}
},
"graphApiVersion": "v22.0",
"httpRequestMethod": "POST"
},
"credentials": {
"facebookGraphApi": {
"id": "credential-id",
"name": "facebookGraphApi Credential"
}
},
"typeVersion": 1
},
{
"id": "43cc35cd-6f96-4db1-9b6d-11e1fa7d529b",
"name": "Container Carousel Image 1",
"type": "n8n-nodes-base.httpRequest",
"position": [
-4660,
1880
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $json.node }}/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "image_url",
"value": "={{ $json.image_url }}"
},
{
"name": "caption",
"value": "={{ $json.caption }}"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "fa54a3d6-2e93-445f-9c6c-6643eb181d07",
"name": "Container Carousel Image 2",
"type": "n8n-nodes-base.httpRequest",
"position": [
-4440,
1880
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $('πŸ”€ Smart Content Router').item.json.node }}/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "image_url",
"value": "=https://4.img-dpreview.com/files/p/TC190x190S190x190~sample_galleries/0890568360/4504013564.jpg"
},
{
"name": "caption",
"value": "={{ $('πŸ”€ Smart Content Router').item.json.caption }}"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "7f1a40cb-79b9-4af1-b41c-5eb26e19ebc7",
"name": "Container HTTP Carousel",
"type": "n8n-nodes-base.httpRequest",
"position": [
-4220,
1880
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $('πŸ”€ Smart Content Router').item.json.node }}/media",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "children",
"value": "={{ $('Container Carousel Image 1').item.json.id }}, {{ $json.id }}"
},
{
"name": "caption",
"value": "={{ $('πŸ”€ Smart Content Router').item.json.caption }}"
},
{
"name": "media_type",
"value": "CAROUSEL"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "0472b36a-76c6-4f1d-840b-1cc6d44aaeef",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
-4360,
180
],
"parameters": {
"width": 400,
"height": 420,
"content": "## πŸ“Έ Image Post Creation"
},
"typeVersion": 1
},
{
"id": "9bd43a33-0ce2-4b70-a6e8-82b770388bfd",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-4360,
620
],
"parameters": {
"width": 400,
"height": 380,
"content": "## πŸ“± Story Image Upload"
},
"typeVersion": 1
},
{
"id": "1fe2c077-d86b-4ce9-b04e-b33c5f515d98",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-4360,
1020
],
"parameters": {
"width": 400,
"height": 380,
"content": "## 🎬 Story Video Upload"
},
"typeVersion": 1
},
{
"id": "72c5e2d9-c8a1-45ed-9856-99cef03ee29c",
"name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-4360,
1420
],
"parameters": {
"width": 400,
"height": 380,
"content": "## 🎡 Instagram Reels Upload"
},
"typeVersion": 1
},
{
"id": "0fb7ead7-7eec-40af-9242-59e514c31e3d",
"name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-4820,
1820
],
"parameters": {
"width": 860,
"height": 220,
"content": "## πŸ–ΌοΈ Carousel Post (Multiple Images)"
},
"typeVersion": 1
},
{
"id": "9284f2a3-f2a2-4f0d-bc3a-9affaf54b871",
"name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-5380,
760
],
"parameters": {
"color": 3,
"width": 840,
"height": 640,
"content": "## Variable and Routing Setup"
},
"typeVersion": 1
},
{
"id": "f6c099a8-bc27-4636-b857-c380d0f99766",
"name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-3700,
840
],
"parameters": {
"color": 6,
"width": 1140,
"height": 540,
"content": "## πŸ”„ Container Processing Pipeline\n1. **Create Container** β†’ After Getting Container ID\n2. **Wait & Poll** β†’ Check if container processing is complete \n3. **Status Check** β†’ Verify FINISHED status before publishing\n4. **Auto-Retry** β†’ If not ready, wait and check again"
},
"typeVersion": 1
},
{
"id": "db361414-e90c-4a71-b353-f837a76f4b6f",
"name": "Sticky Note7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-2520,
840
],
"parameters": {
"color": 4,
"width": 580,
"height": 540,
"content": "## πŸ“€ Smart Publishing System\nRoute automatically selected based on post_type prefix:\n- http_* β†’ Uses HTTP Request nodes\n- fb_* β†’ Uses Facebook Graph API nodes"
},
"typeVersion": 1
},
{
"id": "a27e2ffc-b8e2-4501-a9ba-bc8f31efd92e",
"name": "βœ… Is Container Ready?",
"type": "n8n-nodes-base.if",
"position": [
-2960,
960
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "682def4c-2cda-4417-9329-682a8a60feed",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status_code }}",
"rightValue": "FINISHED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "a42df401-c1e9-4194-9c76-a03c26b1c09c",
"name": "πŸ”€ HTTP vs FB API Router",
"type": "n8n-nodes-base.if",
"position": [
-2460,
1040
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "da6bcb63-632a-443a-b5b3-a8b6e1c62871",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $('πŸ”€ Smart Content Router').item.json.post_type.split(\"_\")[0] }}",
"rightValue": "http"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "10905c0b-ff3c-4aed-b741-652dd1847fac",
"name": "πŸ“€ Publish via HTTP API",
"type": "n8n-nodes-base.httpRequest",
"position": [
-2240,
940
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $('πŸ”€ Smart Content Router').item.json.node }}/media_publish",
"method": "POST",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"queryParameters": {
"parameters": [
{
"name": "creation_id",
"value": "={{ $json.id }}"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "credential-id",
"name": "httpHeaderAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "24948258-f1b0-4e47-92b1-4282b88dbf14",
"name": "πŸ“€ Publish via Facebook SDK",
"type": "n8n-nodes-base.facebookGraphApi",
"position": [
-2240,
1140
],
"parameters": {
"edge": "media_publish",
"node": "={{ $('πŸ”€ Smart Content Router').item.json.node }}",
"options": {
"queryParameters": {
"parameter": [
{
"name": "creation_id",
"value": "={{ $json.id }}"
}
]
}
},
"graphApiVersion": "v22.0",
"httpRequestMethod": "POST"
},
"credentials": {
"facebookGraphApi": {
"id": "credential-id",
"name": "facebookGraphApi Credential"
}
},
"typeVersion": 1
},
{
"id": "90e80bc1-81ab-43dc-b764-2850284ec9e9",
"name": "⏰ Initial Processing Wait",
"type": "n8n-nodes-base.wait",
"position": [
-3440,
1040
],
"webhookId": "443f84eb-1e9d-4c77-9a9a-c70290333dca",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "9db2f610-29ba-46ad-858d-80f909b8ecf7",
"name": "⏰ Retry Wait Loop",
"type": "n8n-nodes-base.wait",
"position": [
-2740,
1140
],
"webhookId": "e9ac0c1d-b415-4160-a6b1-908d2310cb23",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "6aa81fe8-430c-4a06-a9a7-863c568390f2",
"name": "πŸ” Check Processing Status",
"type": "n8n-nodes-base.set",
"position": [
-3660,
1040
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "37f96da8-a8b6-417b-b5cf-7a4df5b4610c",
"name": "container_id",
"type": "string",
"value": "={{ $json.id }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "4327071b-4646-4044-8003-b16720a759be",
"name": "πŸ”€ Smart Content Router",
"type": "n8n-nodes-base.switch",
"position": [
-4880,
900
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "HTTP - Image",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "ab388a77-1660-4a64-ba58-bc405444dbd5",
"operator": {
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "http_image"
}
]
},
"renameOutput": true
},
{
"outputKey": "FB - Image",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "be8816f5-ae68-48c3-869e-bc67078298d8",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "fb_image"
}
]
},
"renameOutput": true
},
{
"outputKey": "HTTP - Story Img",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "663bacc8-ceeb-4f81-b058-c379eaf6e717",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "http_story_image"
}
]
},
"renameOutput": true
},
{
"outputKey": "FB - Story Image",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "99441a51-906e-469a-b98e-64aa43c996ba",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "fb_story_image"
}
]
},
"renameOutput": true
},
{
"outputKey": "HTTP = Story Video",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "29cfc5f8-e1ae-4c10-8961-2356d7c13195",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "http_story_video"
}
]
},
"renameOutput": true
},
{
"outputKey": "FB - Story Video",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "578f5df3-23ef-4ef3-9a48-7528c826ea46",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "fb_story_video"
}
]
},
"renameOutput": true
},
{
"outputKey": "HTTP - Reels",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "25e31619-4116-46e0-bfcb-a8d8a030fa68",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "http_reel"
}
]
},
"renameOutput": true
},
{
"outputKey": "FB - Reels",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "cf34e931-f798-4c70-af29-9aec7aab8f6c",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "fb_reel"
}
]
},
"renameOutput": true
},
{
"outputKey": "HTTP - Carousel",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "02944863-db4b-445f-9c03-382abd9525b9",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "http_carousel"
}
]
},
"renameOutput": true
},
{
"outputKey": "FB - Carousel",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "0a17aaa0-8520-442f-9c3f-b4112339a08c",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.post_type }}",
"rightValue": "fb_carousel"
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "f27ef907-cdab-401d-b8ec-e244f63aada0",
"name": "πŸš€ Manual Trigger - Start Workflow",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-5320,
1040
],
"parameters": {},
"typeVersion": 1
},
{
"id": "cb1562d5-2e46-4299-a93d-d9a283c720d3",
"name": "βš™οΈ Configure Post Settings",
"type": "n8n-nodes-base.set",
"position": [
-5100,
1040
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "217b69e3-98ec-49a2-8fde-372dd1bc1848",
"name": "node",
"type": "string",
"value": "17841456545908024"
},
{
"id": "2caebe7c-a2d3-428e-b129-fcfbe66854e5",
"name": "post_type",
"type": "string",
"value": "http_reel"
},
{
"id": "a17a5c94-d9ae-44f8-9d56-fb55d17efe5a",
"name": "image_url",
"type": "string",
"value": "https://media.licdn.com/dms/image/v2/D4D03AQHf-K7ergkUwQ/profile-displayphoto-shrink_800_800/B4DZbdtDouHQAg-/0/1747476298728?e=1753920000&v=beta&t=Js1KDjpDYOgzYW4YlhwT1_ZmbggoSIxjcq3IA0rRJs0"
},
{
"id": "6e2c9c54-ce2c-4ea5-8bb2-ae2ae4712427",
"name": "caption",
"type": "string",
"value": "Automated Post"
},
{
"id": "32aa1561-458c-4f64-a854-eab65f9ad1dd",
"name": "video_url",
"type": "string",
"value": "https://videos.pexels.com/video-files/4434242/4434242-sd_360_640_24fps.mp4"
},
{
"id": "c6485101-488b-43db-8708-1a1136292956",
"name": "cover_image",
"type": "string",
"value": "https://cdn.pixabay.com/photo/2023/11/07/22/59/building-8373618_1280.jpg"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "38e0d117-e4b0-429d-b263-41ee141c71a2",
"name": "πŸ” Check Processing Status1",
"type": "n8n-nodes-base.httpRequest",
"position": [
-3180,
1040
],
"parameters": {
"url": "=https://graph.facebook.com/v22.0/{{ $('πŸ” Check Processing Status').item.json.container_id }}",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpQueryAuth",
"queryParameters": {
"parameters": [
{
"name": "fields",
"value": "status_code"
}
]
}
},
"credentials": {
"httpQueryAuth": {
"id": "credential-id",
"name": "httpQueryAuth Credential"
}
},
"typeVersion": 4.2
},
{
"id": "7cfc1f61-8318-479e-b763-6d218d04be6c",
"name": "Sticky Note8",
"type": "n8n-nodes-base.stickyNote",
"position": [
-5260,
160
],
"parameters": {
"color": 2,
"width": 460,
"height": 380,
"content": "## πŸ‘¨β€πŸ’» Creator Information\n\n**Created by:** Lakshit Ukani \nπŸ”— **LinkedIn:** [Connect with me](https://www.linkedin.com/in/lakshit-ukani/)\nπŸ”— **Youtube:** [Subscribe to my Channel](https://www.youtube.com/@lakshit-ukani?sub_confirmation=1)\n\n### 🀝 Community & Support\nπŸ’¬ **Join Community:** [Skool Community Link](https://www.skool.com/ai-automation-club-7843) \nπŸ“š **Documentation:** [Full Guide & FAQ](https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media#creating) \n\n### πŸ“ž Need Help?\n- **Quick Questions:** Comment on the YouTube video\n- **Workflow Issues:** Post in our community \n- **Business Inquiries:** Connect via LinkedIn"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Container FB Image": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"Container FB Reels": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"⏰ Retry Wait Loop": {
"main": [
[
{
"node": "πŸ” Check Processing Status1",
"type": "main",
"index": 0
}
]
]
},
"Container HTTP Image": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"Container HTTP Reels": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"Container HTTP Carousel": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"βœ… Is Container Ready?": {
"main": [
[
{
"node": "πŸ”€ HTTP vs FB API Router",
"type": "main",
"index": 0
}
],
[
{
"node": "⏰ Retry Wait Loop",
"type": "main",
"index": 0
}
]
]
},
"Container FB Story Image": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"Container FB Story Video": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"πŸ”€ Smart Content Router": {
"main": [
[
{
"node": "Container HTTP Image",
"type": "main",
"index": 0
}
],
[
{
"node": "Container FB Image",
"type": "main",
"index": 0
}
],
[
{
"node": "Container HTTP Story Image",
"type": "main",
"index": 0
}
],
[
{
"node": "Container FB Story Image",
"type": "main",
"index": 0
}
],
[
{
"node": "Container HTTP Story Video",
"type": "main",
"index": 0
}
],
[
{
"node": "Container FB Story Video",
"type": "main",
"index": 0
}
],
[
{
"node": "Container HTTP Reels",
"type": "main",
"index": 0
}
],
[
{
"node": "Container FB Reels",
"type": "main",
"index": 0
}
],
[
{
"node": "Container Carousel Image 1",
"type": "main",
"index": 0
}
],
[]
]
},
"Container Carousel Image 1": {
"main": [
[
{
"node": "Container Carousel Image 2",
"type": "main",
"index": 0
}
]
]
},
"Container Carousel Image 2": {
"main": [
[
{
"node": "Container HTTP Carousel",
"type": "main",
"index": 0
}
]
]
},
"Container HTTP Story Image": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"Container HTTP Story Video": {
"main": [
[
{
"node": "πŸ” Check Processing Status",
"type": "main",
"index": 0
}
]
]
},
"πŸ”€ HTTP vs FB API Router": {
"main": [
[
{
"node": "πŸ“€ Publish via HTTP API",
"type": "main",
"index": 0
}
],
[
{
"node": "πŸ“€ Publish via Facebook SDK",
"type": "main",
"index": 0
}
]
]
},
"⏰ Initial Processing Wait": {
"main": [
[
{
"node": "πŸ” Check Processing Status1",
"type": "main",
"index": 0
}
]
]
},
"πŸ” Check Processing Status": {
"main": [
[
{
"node": "⏰ Initial Processing Wait",
"type": "main",
"index": 0
}
]
]
},
"πŸ” Check Processing Status1": {
"main": [
[
{
"node": "βœ… Is Container Ready?",
"type": "main",
"index": 0
}
]
]
},
"βš™οΈ Configure Post Settings": {
"main": [
[
{
"node": "πŸ”€ Smart Content Router",
"type": "main",
"index": 0
}
]
]
},
"πŸš€ Manual Trigger - Start Workflow": {
"main": [
[
{
"node": "βš™οΈ Configure Post Settings",
"type": "main",
"index": 0
}
]
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment