Share new WordPress posts on LinkedIn, X and Facebook via webhook
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects LinkedIn, X (Formerly Twitter) and Facebook Graph API.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Settings (Edit Fields (Set)): sets 1 field: site_url
- Get Post (HTTP Request): calls an HTTP API (GET)
- Post Fields (Code): runs custom JavaScript code
- Get Featured Image (HTTP Request): calls an HTTP API
- Publish on X (X (Formerly Twitter)): uses X (Formerly Twitter)
- Publish on Facebook (Facebook Graph API): uses Facebook Graph API
- Has Featured Image (If): checks a condition and branches into true / false
- Publish on LinkedIn (LinkedIn): uses LinkedIn
- Publish Link on LinkedIn (LinkedIn): uses LinkedIn
Services it uses
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 (8)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - LinkedIn
n8n-nodes-base.linkedIn - X (Formerly Twitter)
n8n-nodes-base.twitter - Facebook Graph API
n8n-nodes-base.facebookGraphApi
From the author
Quick overview Every time a post goes live on your WordPress site, this workflow shares it on LinkedIn, X and a Facebook Page. WordPress calls the workflow once per post, so there is no schedule to tune and no table of already-posted IDs to keep. How it works…