top of page

How to Automate Social Media Posting with n8n

2 days ago
3 min read

Posting to social media every day takes time that most small business owners don't have. With n8n you can plan posts in a simple spreadsheet and let a workflow publish them on schedule, so the content goes out even on your busiest days. This guide shows a practical setup with Google Sheets, LinkedIn, Facebook and X, plus the limits you should know before you rely on it.

A quick note on how we wrote this: the steps follow n8n's documentation and each network's developer rules as published in October 2026. We have not run this exact workflow on all three networks end to end, so test it with one account first.

How to automate social media posting with n8n: content sheet, schedule, LinkedIn and Facebook, post log

This post may contain affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

Before you start

  • An n8n account, on n8n Cloud or self-hosted. New to n8n? Start with n8n for Beginners, and see n8n Cloud vs Self-Hosted if you haven't chosen yet.

  • Business accounts on each network and developer access where it's required (LinkedIn app credentials, a Meta app for Facebook pages, an X developer account).

  • A content sheet in Google Sheets with one row per post.

Step 1: Set up the content sheet

Create a sheet with these columns: date (when to post), network (linkedin, facebook or x), text, link, image_url (optional) and status (scheduled, posted or error). Fill in a week of posts. If you need help writing them, see AI Tools for Social Media Content: What Actually Saves Time.

Scheduled social posts with n8n in five steps: content sheet, schedule trigger, optional AI polish, publish, log

Step 2: Build the workflow

  1. Schedule Trigger: run the workflow every hour (or every morning at the time you like to post).

  2. Google Sheets: read the rows of your content sheet.

  3. Filter: keep only rows where status is "scheduled" and the date is now or earlier.

  4. Optional AI step: adapt the text for each network, for example shorter for X and more professional for LinkedIn. Review the results for the first few weeks.

  5. Switch by network: send each row to the right branch.

  6. Publish: use the LinkedIn node, the Facebook Graph API node or the X node (details below).

  7. Update the sheet: set status to "posted", or "error" if the network rejected it.

Step 3: Connect each network

LinkedIn

n8n's LinkedIn node has a Create Post operation and a Post As option, so you can post as yourself or as your company page. For a company page, n8n's documentation says to enter the organization number in the URN field (just the number, without the "urn:li:company:" prefix). You will need a LinkedIn developer app and the right permissions on the page.

Facebook pages

Use the Facebook Graph API node to publish to a page you manage, with a page access token from a Meta app. A post with text and a link goes to the page's feed endpoint. Meta changes permissions and token rules regularly, so follow Meta's current developer documentation when you create the app.

Instagram

Instagram publishing through the API needs a professional (business or creator) account connected to a Facebook page, and it works in two steps: create a media container with the image, then publish it. It's doable in n8n with the same Graph API node, but it's the most fiddly of the four, so add it after the others work.

X

The X node can create posts, but the X API is no longer free for new developers. Third-party summaries in 2026 describe pay-per-use pricing of around $0.015 per post and about $0.20 for a post that contains a link (Postproxy). Check the current price in X's developer portal before you connect it.

Step 4: Add error alerts

Tokens expire and networks change their rules, so a post will fail sooner or later. Add an Error Trigger workflow in n8n that emails or messages you when something breaks, and mark the row as "error" so you can post it by hand.

Is n8n the right tool for this?

  • Choose n8n if you want everything in one place, post to several networks from one sheet, or connect posting to other automations like a new blog post or a product launch.

  • Choose a scheduling app (Buffer, Hootsuite, Meta Business Suite and similar) if you only need a calendar and a nice editor; they handle the network approvals for you.

  • Still comparing automation tools? Read n8n vs Zapier vs Make: Which One to Choose?

The bottom line

A content sheet, a schedule and one branch per network is all it takes to automate social media posting with n8n. Start with one network, usually LinkedIn or your Facebook page, run it for two weeks, then add the others. Keep a human review step for anything AI rewrites, and set up error alerts on day one.

Get one ready-to-use automation every week: subscribe to the Blog Spotlight Weekly newsletter.

Comments


bottom of page