Skip to product information

WordPress to LinkedIn, X & Facebook Webhook (n8n Workflow)

WordPress to LinkedIn, X & Facebook Webhook (n8n Workflow)

 (200+Reviews)
Regular price £33.99
Regular price £33.99 Sale price
SAVE Sold out
Instant Digital Download
Unlimited Downloads
Lifetime Access in Your Account
🔥
128+ Sold
Popular with n8n builders
23 people viewing
High interest right now
9 added today
Fast-moving digital product
WordPress to LinkedIn, X & Facebook Webhook (n8n Workflow)

WordPress to LinkedIn, X & Facebook Webhook (n8n Workflow)

Regular price £33.99
Regular price £33.99 Sale price
SAVE Sold out

Automatically share every new WordPress post to LinkedIn, X (Twitter), and Facebook—using a secure n8n webhook

This n8n workflow listens for a new WordPress post and immediately publishes it to your LinkedIn, X, and Facebook Page. No scheduler to manage—WordPress triggers the workflow once per post via a protected webhook endpoint.

What this workflow does

  • Receives a webhook from WordPress with the payload {"post_id": 123} (header authentication keeps the endpoint private).
  • Fetches the post details from your site using /wp-json/wp/v2/posts/123?_embed=wp:featuredmedia (published posts are public, so no WordPress credentials are required).
  • Extracts post fields in a Code node: it converts the REST response into title, summary, url, and image_url by stripping HTML from the excerpt, decoding entities, and selecting the featured image if available.
  • Handles featured images intelligently:
    • If a featured image exists, it publishes with the image on LinkedIn, and uses the page’s Open Graph image for X and Facebook.
    • If no featured image exists, LinkedIn falls back to Publish Link on LinkedIn (link card style).
  • Continues even if one network fails: each publish node can proceed independently, so a LinkedIn outage won’t block X or Facebook.

Use cases

  • SaaS operators promoting every blog post across social channels without manual copy/paste.
  • Automation engineers standardizing a WordPress → social distribution pipeline in n8n.
  • Teams using featured images on WordPress to consistently generate richer social previews.

Technical details

  • n8n Webhook (New Post Webhook with header auth)
  • if and Set nodes for logic and configuration
  • Code node to format title/summary/url/image_url
  • twitter node for X
  • linked in node for LinkedIn
  • Facebook Page publishing via the workflow’s publish node (Open Graph behavior noted above)
View full details