Automate Instagram stories publishing from Google Sheets with Meta Graph API
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Sheets and Facebook Graph API.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- ⚙️ Configuration Hub (Edit Fields (Set)): sets 4 fields: IG_BUSINESS_ID, GRAPH_VERSION, SHEET_DOC_ID…
- 📊 Fetch Videos from Sheet (Google Sheets): uses Google Sheets
- 🎲 Randomize Order (Sort): sorts the items
- 🔄 Process Each Video (Loop Over Items (Split in Batches)): loops over the items in batches
- ❓ Already Posted Check (If): checks a condition and branches into true / false
- 🎯 Prepare Video Data (Edit Fields (Set)): sets 3 fields: instagram_business_id, video_url, api_version
- 📤 Create Story Container (HTTP Request): calls an HTTP API (POST)
- 🔍 Check Processing Status (HTTP Request): calls an HTTP API
- ✅ Ready to Publish? (If): checks a condition and branches into true / false
- 🎉 Publish to Instagram (Facebook Graph API): uses Facebook Graph API
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (10)
- Edit Fields (Set)
n8n-nodes-base.set - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Sort
n8n-nodes-base.sort - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Facebook Graph API
n8n-nodes-base.facebookGraphApi
From the author
Quick overview This workflow completely automates posting Instagram Stories using a Google Sheet. By adding direct video URLs to your sheet, the workflow automatically schedules, shuffles, and publishes the content while preventing duplicates, giving you a…