{
  "name": "Simple social: Instagram single image post with Facebook API",
  "nodes": [
    {
      "id": "ff1d20ec-2801-4c38-b71f-e0745b22a68c",
      "name": "Instagram prepare media",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "ae418ed8-47f7-4042-aa4d-abfbba12c580",
      "name": "Instagram publish media",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        540,
        -80
      ]
    },
    {
      "id": "b4bd1064-606d-4e31-8904-1f86a6f960a1",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -440,
        0
      ]
    },
    {
      "id": "b0fdc882-298c-4208-9935-d17f86b266dd",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        -77.62658687843901
      ],
      "parameters": {
        "width": null,
        "height": 248.90655871788812,
        "content": "Choose the trigger you want for example trigger this workflow from another one"
      }
    },
    {
      "id": "c395b60d-2423-415b-a6ef-1ce03c4d55a3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -51,
        -140.74317176338093
      ],
      "parameters": {
        "width": 1329.8249455924943,
        "height": 430.4091991661993,
        "content": "Add your credential"
      }
    },
    {
      "id": "5e872d97-b19f-4dce-91dc-e18aee3bcdca",
      "name": "Instagram params",
      "type": "n8n-nodes-base.set",
      "position": [
        -200,
        0
      ]
    },
    {
      "id": "256566bb-cb69-430e-ac94-ef2fd533f9ef",
      "name": "Node just for retrive id of instagram page",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        -240,
        -360
      ]
    },
    {
      "id": "52fa439f-a456-4d93-8f1e-b4c4141d32ee",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -460
      ],
      "parameters": {
        "width": 318,
        "height": 289,
        "content": "You can use this node if you want to retrieve the instagram id. \n\nAdd it to the workflow ore use manually"
      }
    },
    {
      "id": "2a72a21f-d3d7-4788-978b-8868f50f1108",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -248,
        -140
      ],
      "parameters": {
        "width": 188,
        "height": 310,
        "content": "Here we have all parameters for posting in instagram image url, caption and instagram business profile id"
      }
    },
    {
      "id": "63f6b3b2-4aaa-487c-8eae-e6ed39d77ddc",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        180
      ],
      "parameters": {
        "width": 439.10253951549294,
        "height": 792,
        "content": "## Permissions\nPublishing relies on a combination of the following permissions. The exact combination depends on which endpoints your app uses. Refer to our endpoint references to determine which perm"
      }
    },
    {
      "id": "336f8d20-ce1c-4097-91ba-1cf7cdd4f8d0",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -920,
        -320
      ],
      "parameters": {
        "width": 365.0530681548117,
        "height": 232.74275402436496,
        "content": "## Instagram single image Post Workflow with Facebook API\n\nthis is a workflow for post a single image on instagram\n\n\nP.S: if you want use instagram API you need just change the default url in node wit"
      }
    },
    {
      "id": "03ef7207-aa48-4c31-b5c2-91bb2436f68b",
      "name": "Instagram check status of media uploaded before",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        180,
        0
      ]
    },
    {
      "id": "3ba33f4a-e89b-40b1-98ec-c658a99777b8",
      "name": "If media status is finished",
      "type": "n8n-nodes-base.if",
      "position": [
        340,
        0
      ]
    },
    {
      "id": "fe72d3b7-4a8f-4b2d-9af7-d057da11fc88",
      "name": "Instagram check status of media published before",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        740,
        -80
      ]
    },
    {
      "id": "4dd7347e-7a41-4cb0-ae2e-93a019ae4497",
      "name": "If media status is finished1",
      "type": "n8n-nodes-base.if",
      "position": [
        940,
        -80
      ]
    },
    {
      "id": "7dec948d-7ce0-4a68-acfb-cc9ab8e26f3e",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        540,
        140
      ]
    },
    {
      "id": "2c95dafb-f087-45ee-8e1f-3efdacd3ab6c",
      "name": "Send Email1",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1160,
        -120
      ]
    },
    {
      "id": "c04c8441-6935-4bce-a358-4bba69d5b30b",
      "name": "Send Email2",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1160,
        40
      ]
    },
    {
      "id": "74f0c188-03ce-49a6-9004-ee0720f9e4df",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        300
      ],
      "parameters": {
        "width": null,
        "height": 102.11100456713636,
        "content": "You can send email for unsuccessful upload or what you want, you can trigger another workflow or another node"
      }
    },
    {
      "id": "127813b3-2cfd-40b9-a4d9-c88c5927f4f1",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1340,
        40
      ],
      "parameters": {
        "width": null,
        "height": 112.31608359812239,
        "content": "You can send email for unsuccessful publishing or what you want, you can trigger another workflow or another node"
      }
    },
    {
      "id": "f156294d-cf7b-4638-ac00-87ea30f846a0",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1340,
        -120
      ],
      "parameters": {
        "width": null,
        "height": 112.31608359812239,
        "content": "You can send email for successfull publishing or what you want, you can trigger another workflow or another node"
      }
    }
  ],
  "connections": {
    "Instagram params": {
      "main": [
        [
          {
            "node": "Instagram prepare media",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram prepare media": {
      "main": [
        [
          {
            "node": "Instagram check status of media uploaded before",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram publish media": {
      "main": [
        [
          {
            "node": "Instagram check status of media published before",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If media status is finished": {
      "main": [
        [
          {
            "node": "Instagram publish media",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If media status is finished1": {
      "main": [
        [
          {
            "node": "Send Email1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Email2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Instagram params",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram check status of media uploaded before": {
      "main": [
        [
          {
            "node": "If media status is finished",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Instagram check status of media published before": {
      "main": [
        [
          {
            "node": "If media status is finished1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}