{
  "name": "Đăng bài instagram",
  "nodes": [
    {
      "parameters": {
        "httpRequestMethod": "POST",
        "graphApiVersion": "v22.0",
        "node": "17841476941558649",
        "edge": "media",
        "options": {
          "queryParameters": {
            "parameter": [
              {
                "name": "image_url",
                "value": "={{ $json.url }}"
              },
              {
                "name": "caption",
                "value": "={{ $('Data_Sheet').item.json.Captions }}"
              }
            ]
          }
        }
      },
      "id": "c6350cfc-3be6-4541-b6b2-9b57b12c6bf7",
      "name": "Connect Facebook API for Publishing Instagram Post using N8N2",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        80,
        -60
      ],
      "typeVersion": 1,
      "credentials": {
        "facebookGraphApi": {
          "id": "1ijAB7huZglsriV8",
          "name": "FB Ngoc ne"
        }
      }
    },
    {
      "parameters": {
        "httpRequestMethod": "POST",
        "graphApiVersion": "v22.0",
        "node": "17841476941558649",
        "edge": "media_publish",
        "options": {
          "queryParameters": {
            "parameter": [
              {
                "name": "creation_id",
                "value": "={{ $json.id }}"
              }
            ]
          }
        }
      },
      "id": "b733bc81-f34a-4f0b-a9d3-d50bfd4c361f",
      "name": "Finally Post to Instagram1",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        480,
        -60
      ],
      "typeVersion": 1,
      "credentials": {
        "facebookGraphApi": {
          "id": "1ijAB7huZglsriV8",
          "name": "FB Ngoc ne"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1xNcWzb-HAWPr5WJY8T82uIKDAUY5xPQjESZC10vcAzE",
          "mode": "list",
          "cachedResultName": "Test Insta",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1xNcWzb-HAWPr5WJY8T82uIKDAUY5xPQjESZC10vcAzE/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1xNcWzb-HAWPr5WJY8T82uIKDAUY5xPQjESZC10vcAzE/edit#gid=0"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        -380,
        -60
      ],
      "id": "2f336c68-b79b-441e-b053-d9ab82f0d525",
      "name": "Data_Sheet",
      "alwaysOutputData": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "cBXvSOFmflmdaYlF",
          "name": "Ngoc sheet "
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.cloudinary.com/v1_1/duf3vwxh9/image/upload",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "file",
              "value": "={{ $json['Image Urls'] }}"
            },
            {
              "name": "upload_preset",
              "value": "n8n_unsigned"
            },
            {
              "name": "api_key",
              "value": "146387213753481"
            },
            {
              "name": "timestamp",
              "value": "={{Math.floor(Date.now()/1000)}}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -140,
        -60
      ],
      "id": "a0cef683-9c14-4a44-ab23-eb58736f6b5f",
      "name": "HTTP Request"
    },
    {
      "parameters": {},
      "id": "a2b00c03-b0fa-49b6-ac8d-3e0bc00ceb04",
      "name": "Wait for Container Processing",
      "type": "n8n-nodes-base.wait",
      "position": [
        280,
        -60
      ],
      "webhookId": "1b14c8bf-151a-4054-8215-093dd5b6cbcc",
      "typeVersion": 1.1
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 3
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -600,
        -60
      ],
      "id": "b8980ec9-9216-4195-b272-b77ed3c3837b",
      "name": "Schedule Trigger"
    }
  ],
  "pinData": {},
  "connections": {
    "Connect Facebook API for Publishing Instagram Post using N8N2": {
      "main": [
        [
          {
            "node": "Wait for Container Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Data_Sheet": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Connect Facebook API for Publishing Instagram Post using N8N2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Container Processing": {
      "main": [
        [
          {
            "node": "Finally Post to Instagram1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Data_Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "250540b4-64f0-4e00-b67a-f1ef7d4006c5",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "79ded29a89147097aec9474e6c3655e942ca3b9aba6e605e774f30e337fe4f9a"
  },
  "id": "lyMEuPF2kcDibmh0",
  "tags": [
    {
      "createdAt": "2025-09-14T09:41:45.006Z",
      "updatedAt": "2025-09-14T09:41:45.006Z",
      "id": "9sNtI81ahqeKW3ES",
      "name": "Marketing"
    }
  ]
}