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 →
{
"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.
facebookGraphApilinkedInOAuth2ApitwitterOAuth1Api
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 →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Content Publishing - Blog to Social. Uses filesWatcher, readFile, httpRequest, twitter. Manual trigger; 8 nodes.
Book Publishing Automation - Rohimaya. Uses emailSend, httpRequest, twitter, supabase. Webhook trigger; 7 nodes.
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
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.
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