AutomationFlowsSocial Media › Wordpress to Social Media Auto-post

Wordpress to Social Media Auto-post

WordPress to Social Media Auto-Post. Uses twitter, facebook, httpRequest. Webhook trigger; 6 nodes.

Webhook trigger★★☆☆☆ complexity6 nodesTwitterFacebookHTTP Request
Social Media Trigger: Webhook Nodes: 6 Complexity: ★★☆☆☆ Added:

This workflow follows the HTTP Request → Twitter recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "WordPress to Social Media Auto-Post",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "social-post",
        "responseMode": "responseNode",
        "options": {}
      },
      "name": "Webhook - New Post",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json[\"auto_post_social\"]}}",
              "value2": true
            }
          ]
        }
      },
      "name": "Check Auto-Post Enabled",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "operation": "create",
        "text": "=New blog post: {{$json[\"post_title\"]}}\n\nRead more: https://your-nextjs-site.com/blog/{{$json[\"post_name\"]}}",
        "additionalFields": {}
      },
      "name": "Post to Twitter/X",
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 1,
      "position": [
        650,
        200
      ],
      "credentials": {
        "twitterOAuth1Api": "<your credential>"
      }
    },
    {
      "parameters": {
        "resource": "post",
        "operation": "create",
        "pageId": "YOUR_FACEBOOK_PAGE_ID",
        "message": "=New blog post: {{$json[\"post_title\"]}}\n\n{{$json[\"excerpt\"]}}\n\nRead more: https://your-nextjs-site.com/blog/{{$json[\"post_name\"]}}",
        "additionalFields": {
          "link": "=https://your-nextjs-site.com/blog/{{$json[\"post_name\"]}}"
        }
      },
      "name": "Post to Facebook",
      "type": "n8n-nodes-base.facebook",
      "typeVersion": 1,
      "position": [
        650,
        300
      ],
      "credentials": {
        "facebookGraphApi": "<your credential>"
      }
    },
    {
      "parameters": {
        "url": "https://api.linkedin.com/v2/shares",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "linkedInOAuth2Api",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "jsonParameters": true,
        "bodyParametersJson": "={\n  \"content\": {\n    \"contentEntities\": [\n      {\n        \"entityLocation\": \"https://your-nextjs-site.com/blog/{{$json[\"post_name\"]}}\"\n      }\n    ],\n    \"title\": \"{{$json[\"post_title\"]}}\"\n  },\n  \"distribution\": {\n    \"linkedInDistributionTarget\": {}\n  },\n  \"text\": {\n    \"text\": \"{{$json[\"excerpt\"]}}\"\n  }\n}",
        "options": {}
      },
      "name": "Post to LinkedIn",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        650,
        400
      ],
      "credentials": {
        "linkedInOAuth2Api": "<your credential>"
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={\"success\": true, \"message\": \"Posted to social media\"}",
        "options": {}
      },
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        850,
        300
      ]
    }
  ],
  "connections": {
    "Webhook - New Post": {
      "main": [
        [
          {
            "node": "Check Auto-Post Enabled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Auto-Post Enabled": {
      "main": [
        [
          {
            "node": "Post to Twitter/X",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post to Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Post to LinkedIn",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post to Twitter/X": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post to Facebook": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post to LinkedIn": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

WordPress to Social Media Auto-Post. Uses twitter, facebook, httpRequest. Webhook trigger; 6 nodes.

Source: https://github.com/Kesaramb/wp-nextjs-project/blob/c9b620c8ad6e5a689abd9786ae9314114f22cf39/n8n-workflows/social-media-auto-post.json — original creator credit. Request a take-down →

More Social Media workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Social Media

Content Publishing - Blog to Social. Uses filesWatcher, readFile, httpRequest, twitter. Manual trigger; 8 nodes.

Files Watcher, Read File, HTTP Request +4
Social Media

Book Publishing Automation - Rohimaya. Uses emailSend, httpRequest, twitter, supabase. Webhook trigger; 7 nodes.

Email Send, HTTP Request, Twitter +1
Social Media

This workflow automates the post-publish process for YouTube videos, combining advanced SEO optimization, cross-platform promotion, and analytics reporting. It is designed for creators, marketers, and

YouTube, HTTP Request, LinkedIn +6
Social Media

Automatically scrape LinkedIn posts with Apify, transform them into optimized tweets and threads using Claude AI, store them in Airtable for approval, and publish to X on a daily schedule.

@Apify/N8N Nodes Apify, Output Parser Structured, Chain Llm +6
Social Media

Every time you publish a blog post on WordPress, this workflow automatically creates unique, platform-optimised captions for Facebook, Instagram, Twitter and LinkedIn — and publishes them all simultan

Agent, Output Parser Structured, OpenRouter Chat +3