Templates / Automate Instagram & Facebook posting with Meta Graph API & System User Tokens

Automate Instagram & Facebook posting with Meta Graph API & System User Tokens

Ready for 3.0

by Brian · 11,397 views · created 2025-06-29 · Social Media

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 18 nodes and runs on a schedule (every 30 days at 01:00) (plus 1 other trigger). It uses only n8n's built-in nodes. It also calls graph.facebook.com over HTTP.

How it runs

Trigger: On a schedule (every 30 days at 01:00) (plus 1 other trigger).

  1. Get Current Token (Code): runs custom JavaScript code
  2. Post to Instagram (HTTP Request): calls graph.facebook.com (POST)
  3. Refresh token (HTTP Request): calls graph.facebook.com
  4. Wait: waits 2 seconds
  5. Push to Static Data (Code): runs custom JavaScript code
  6. Publish instagram post (HTTP Request): calls graph.facebook.com (POST)
  7. Use System token to get page token (HTTP Request): calls graph.facebook.com
  8. Get Correct Page Token (Code): runs custom JavaScript code
  9. Post to Facebook (HTTP Request): calls graph.facebook.com (POST)
  10. Get Token from static Data (Code): runs custom JavaScript code

…plus 6 more steps. See the full node list below.

HTTP calls to: graph.facebook.com

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 (5)

From the author

This template automates posting to Instagram Business and Facebook Pages using the Meta Graph API. It supports both short-lived and long-lived tokens, with a secure approach using System User tokens for reliable, ongoing automation. Includes detailed guidance…

Excerpt from Brian 's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.