{
  "name": "Postifys \u2014 Scheduled Facebook feed post",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 24
            }
          ]
        }
      },
      "id": "sched-1",
      "name": "Every day",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "0",
              "name": "text",
              "value": "Scheduled update from Postifys",
              "type": "string"
            },
            {
              "id": "1",
              "name": "pageId",
              "value": "FACEBOOK_PAGE_ID",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "set-1",
      "name": "Scheduled post",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://postifys.com/api/facebook/post",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ text: $json.text, type: \"FEED\", pageId: $json.pageId }) }}",
        "options": {}
      },
      "id": "http-1",
      "name": "Facebook FEED",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        460,
        0
      ],
      "credentials": {
        "httpHeaderAuth": {
          "id": "REPLACE_WITH_POSTIFYS_HEADER_AUTH",
          "name": "Postifys API Key (Authorization: Bearer \u2026)"
        }
      },
      "notes": "Create Header Auth credential: Name=Authorization, Value=Bearer YOUR_API_KEY"
    }
  ],
  "connections": {
    "Every day": {
      "main": [
        [
          {
            "node": "Scheduled post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scheduled post": {
      "main": [
        [
          {
            "node": "Facebook FEED",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "instanceId": "postifys-public-template"
  },
  "pinData": {},
  "versionId": "1",
  "tags": [
    {
      "name": "postifys"
    }
  ]
}