n8nAutomationSocial MediaTutorial

Automate Your Social Media Posting with n8n: X, LinkedIn & Instagram

Turn your content creation into a hands-off pipeline. Auto-post to X, LinkedIn, and Instagram using n8n workflows with scheduling and AI-assisted captions.

Feb 15, 2026
10 min read
Automate Your Social Media Posting with n8n: X, LinkedIn & Instagram

Why I Automated My Social Media

Posting consistently across X, LinkedIn, and Instagram was eating 30-45 minutes of my day. For a developer working 2-3 hours on side projects, that's 25-35% of my productive time gone.

So I built an n8n workflow that handles everything automatically.

Architecture: n8n as the Orchestrator

Content Queue (Google Sheets / Notion)
    → n8n (scheduled trigger)
        → AI Caption Generator (Claude API)
        → X/Twitter (API v2)
        → LinkedIn (Email draft)
        → Instagram (Meta Graph API)
    → Notification (Telegram)

X/Twitter: Auto-Posting with API v2

The X API v2 makes posting straightforward:

// n8n HTTP Request node
{
  method: "POST",
  url: "https://api.twitter.com/2/tweets",
  authentication: "oAuth2",
  body: {
    text: "{{ $json.caption_english }}"
  }
}

For threads, post the first tweet, capture the ID, then reply to it in a loop.

LinkedIn: Email Draft Workflow

LinkedIn's API is restrictive for automated posting. My workaround:

  1. Claude generates the LinkedIn post text (French, B2B angle)
  2. n8n sends it to my email as a draft
  3. I review and post manually (2 minutes vs writing from scratch)

Instagram: Posting via Meta Graph API

Instagram requires a Facebook Business Page connected to your Instagram account:

// Step 1: Create media container
POST https://graph.facebook.com/v18.0/{ig_user_id}/media
{ image_url: "...", caption: "..." }

// Step 2: Publish
POST https://graph.facebook.com/v18.0/{ig_user_id}/media_publish
{ creation_id: "..." }

Scheduling and Content Queue

I use a Google Sheet as my content queue: | Date | Topic | English Caption | French Caption | Image URL | Status | |------|-------|----------------|----------------|-----------|--------|

n8n checks the sheet every day at 9 AM, picks the next unpublished row, and distributes it.

The Full n8n Workflow

The workflow JSON is available on my GitHub. Import it, add your API keys, and you're live.


Need custom workflow automation? Let's build it together.

Want more like this?

Get the free toolkit + occasional tips on React Native, Next.js, and AI.

No spam. Unsubscribe anytime.