Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Social Media Publishing

Social Media Publishing

Share new WordPress posts on LinkedIn, X and Facebook via webhook

When an API call/webhook arrives, it publishes to social media using Facebook / Instagram, LinkedIn, X (Twitter).

What it does

## Share new WordPress posts to LinkedIn, X and Facebook ### How it works WordPress sends the post ID here when a post is published. The workflow reads the post from your site's REST API and publishes it to LinkedIn, X and your Facebook Page. Nothing polls, so there is no schedule to tune and no list of already-posted IDs to keep. ### Setup steps 1. Settings: enter your site URL. 2. New Post Webhook: add a Header Auth credential and copy the production URL. 3. Get API access: X developer console (pay-per-use since February 2026: load credits under Billing first, a post with a link costs $0.20), LinkedIn Posts API, Meta access tokens. Connect the credentials on the three publish nodes. 4. Publish on Facebook: replace YOUR_PAGE_ID with your Page ID. 5. In WordPress, POST {"post_id": 123} to the webhook URL on publish_post. The template description shows two ways: a webhook plugin, or a short PHP snippet for functions.php.

The steps

  1. New Post Webhook
  2. Settings
  3. Get Post
  4. Post Fields
  5. Get Featured Image
  6. Has Featured Image
  7. Publish on LinkedIn
  8. Publish Link on LinkedIn
  9. Publish on X
  10. Publish on Facebook

Similar automations