{"product_id":"wordpress-to-linkedin-x-facebook-webhook-n8n-workflow","title":"WordPress to LinkedIn, X \u0026 Facebook Webhook (n8n Workflow)","description":"\u003ch3\u003eAutomatically share every new WordPress post to LinkedIn, X (Twitter), and Facebook—using a secure n8n webhook\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow listens for a \u003cstrong\u003enew WordPress post\u003c\/strong\u003e and immediately publishes it to your \u003cstrong\u003eLinkedIn\u003c\/strong\u003e, \u003cstrong\u003eX\u003c\/strong\u003e, and \u003cstrong\u003eFacebook Page\u003c\/strong\u003e. No scheduler to manage—WordPress triggers the workflow once per post via a protected webhook endpoint.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives a webhook from WordPress\u003c\/strong\u003e with the payload \u003ccode\u003e{\"post_id\": 123}\u003c\/code\u003e (header authentication keeps the endpoint private).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches the post details\u003c\/strong\u003e from your site using \u003ccode\u003e\/wp-json\/wp\/v2\/posts\/123?_embed=wp:featuredmedia\u003c\/code\u003e (published posts are public, so \u003cstrong\u003eno WordPress credentials\u003c\/strong\u003e are required).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eExtracts post fields\u003c\/strong\u003e in a Code node: it converts the REST response into \u003cstrong\u003etitle\u003c\/strong\u003e, \u003cstrong\u003esummary\u003c\/strong\u003e, \u003cstrong\u003eurl\u003c\/strong\u003e, and \u003cstrong\u003eimage_url\u003c\/strong\u003e by stripping HTML from the excerpt, decoding entities, and selecting the featured image if available.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHandles featured images intelligently\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003eIf a featured image exists, it publishes with the image on \u003cstrong\u003eLinkedIn\u003c\/strong\u003e, and uses the page’s Open Graph image for \u003cstrong\u003eX\u003c\/strong\u003e and \u003cstrong\u003eFacebook\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003eIf no featured image exists, LinkedIn falls back to \u003cstrong\u003ePublish Link on LinkedIn\u003c\/strong\u003e (link card style).\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eContinues even if one network fails\u003c\/strong\u003e: each publish node can proceed independently, so a LinkedIn outage won’t block X or Facebook.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS operators promoting \u003cstrong\u003eevery blog post\u003c\/strong\u003e across social channels without manual copy\/paste.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers standardizing a \u003cstrong\u003eWordPress → social distribution\u003c\/strong\u003e pipeline in n8n.\u003c\/li\u003e\n  \u003cli\u003eTeams using featured images on WordPress to consistently generate richer social previews.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n Webhook\u003c\/strong\u003e (New Post Webhook with header auth)\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eif\u003c\/strong\u003e and \u003cstrong\u003eSet\u003c\/strong\u003e nodes for logic and configuration\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eCode\u003c\/strong\u003e node to format \u003cem\u003etitle\/summary\/url\/image_url\u003c\/em\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003etwitter\u003c\/strong\u003e node for \u003cstrong\u003eX\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003elinked in\u003c\/strong\u003e node for \u003cstrong\u003eLinkedIn\u003c\/strong\u003e\n\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFacebook Page\u003c\/strong\u003e publishing via the workflow’s publish node (Open Graph behavior noted above)\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46063638511795,"sku":"N8N-19727","price":33.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/WOKhERb1Co52350fG55XY_L8Zwf1cF.png?v=1789808633","url":"https:\/\/buyflowscripts.com\/products\/wordpress-to-linkedin-x-facebook-webhook-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}