Share new blog posts from an RSS feed to social media automatically
An n8n RSS Feed Trigger node, or a short script on a schedule, shares each new item of a blog's RSS feed on Facebook, Instagram, TikTok and more channels through easyCoexistence. It sends the item's title, link and image to easyCoexistence's posts API, which publishes on each network's official API, at once or at a time you choose. Claude drafts LinkedIn posts on request, for a person to approve.
The RSS item element holding a string that uniquely identifies the item.
The three attributes an RSS enclosure requires: where the file is, its size in bytes and its MIME type.
LinkedIn's Posts API does not read a link to build an article post; the caller sets its title and description.
The Open Graph tag Facebook reads for the image shown when a page is shared; images are cached by their URL.
Claude's name for reading a page's full content from a URL you give it, part of its web search feature.
How does n8n share each new feed item?
With the RSS Feed Trigger node, which starts a workflow when a new item is published to the feed. Enter the Feed URL and choose Poll Times, such as a check at a set number of minutes. Each run carries the new item, with fields such as its title and link.
Then one HTTP Request node per account calls POST https://easycoexistence.com/api/v1/channels/<account_id>/posts, with a Header Auth credential holding the ec_live_ key: a link post for Facebook, and a picture with a caption for Instagram and TikTok. To rewrite the text for each network first, add an AI Agent node; with an MCP Client Tool connected to easyCoexistence over OAuth2 and only the Facebook, Instagram and TikTok publish tools selected, it can publish by itself.
LinkedIn posts stay out of the workflow: Claude or ChatGPT drafts each one on request, and a person approves it before it goes out.
How does a script share new items without n8n?
By remembering which items it has shared. The Python script below runs from cron, reads the feed and treats an item as new when its guid is missing from its file of shared items. On its first run it only records the items, so the feed's back catalogue does not go out at once.
For each new item it calls the posts API once per account, with an Idempotency-Key made from the account and the guid. easyCoexistence honors that header, so a run that stops halfway and starts again cannot post an item twice. When the feed carries a JPEG enclosure, the script also makes an Instagram photo post from it. LinkedIn stays out of the script, since a person approves each LinkedIn post.
import hashlib, json, os, pathlib
import xml.etree.ElementTree as ET
import requests
EC = "https://easycoexistence.com/api/v1"
AUTH = {"Authorization": f"Bearer {os.environ['EC_API_KEY']}"} # ec_live_...
FEED = "https://example.com/feed/"
LINK_POSTS = ["<FACEBOOK_PAGE_ACCOUNT_ID>"] # not LinkedIn: a person approves each post there
PHOTO_POSTS = ["<INSTAGRAM_ACCOUNT_ID>"]
SHARED = pathlib.Path("shared.json")
def post(account: str, guid: str, body: dict) -> None:
key = hashlib.sha256(f"{account}|{guid}".encode()).hexdigest() # same item, same key
r = requests.post(f"{EC}/channels/{account}/posts", json=body, timeout=60,
headers={**AUTH, "Idempotency-Key": key})
if not r.ok:
print(account, r.status_code, r.text[:200])
def share(item: ET.Element, guid: str) -> None:
title, link = item.findtext("title", ""), item.findtext("link", "")
for account in LINK_POSTS:
post(account, guid, {"text": title, "link": {"url": link}})
image = item.find("enclosure")
if image is not None and image.get("type") == "image/jpeg":
for account in PHOTO_POSTS:
post(account, guid, {"text": f"{title}. Read it at {link}",
"media": [{"url": image.get("url"), "type": "image"}]})
items = ET.fromstring(requests.get(FEED, timeout=30).content).findall("./channel/item")
first_run = not SHARED.exists()
shared = set() if first_run else set(json.loads(SHARED.read_text()))
for item in reversed(items): # oldest first
guid = item.findtext("guid") or item.findtext("link")
if guid not in shared and not first_run:
share(item, guid)
shared.add(guid)
SHARED.write_text(json.dumps(sorted(shared)))How should each network show a blog post?
As a link where the network takes one, and as a picture where it does not. LinkedIn and Facebook take link posts, and they build them differently: LinkedIn's API does not read the page, so easyCoexistence sends the title and description you give it, while Facebook reads the page's Open Graph tags for the preview. A LinkedIn link post made this way shows no thumbnail, so for a picture there, post the image with the address in the text. Instagram and TikTok need an image, so use the article's main picture, in a format each accepts, and write the address into the caption as text.
| What to send | What readers see | |
|---|---|---|
| Text, the article's link and its title | The text and a link card with your title | |
| Text and the article's link | A preview from og:title, og:description and og:image | |
| The main image as JPEG, a caption with the address | A photo post with the caption | |
| TikTok | 1 to 35 JPEG or WebP images, a title and a caption | A photo post; TikTok posts carry no link |
Can Claude or ChatGPT share an article on request?
Yes, whenever you ask. Give Claude the article's address and say where and when, for example: "Share https://example.com/blog/spring-menu on LinkedIn and Facebook tomorrow at 9am London time." With web search on, Claude reads a page from a URL you give it, which Anthropic calls web fetch, writes a version for each network and, once you approve them, schedules each one with publish_linkedin_post or publish_facebook_post and scheduled_at.
In ChatGPT, with easyCoexistence added as a custom MCP server, paste the article's text and link. Neither assistant watches the feed between chats, so new items go out on their own only through n8n or the script.
How do you keep a feed from sharing an item twice?
By keying on the guid. A feed lists only its most recent items, a number WordPress sets under Settings, Reading, so items move down and drop off the list; judge what is new by guid, not by position, and fall back to the link when a feed has none. Record each guid as soon as its posts are sent.
Spread the posts out as well. TikTok's API takes up to 15 photo posts per account a day and Instagram's 100 posts in a moving 24 hours, so a blog that publishes in bursts can give each item a publish_at an hour after the last instead of sending them together.
How to set it up
- Connect the accountsConnect the Facebook Page, Instagram account or TikTok account in the easyCoexistence dashboard, and note each account_id.
- Find the feedCopy the blog's RSS feed address, such as https://example.com/feed/, and open it once to check that it lists the latest posts.
- Start sharingAdd an RSS Feed Trigger and an HTTP Request node per account in n8n, or run the script from cron with an ec_live_ key.
Common mistakes
- Posting the whole feed on the first run. A feed lists its recent items, so record their guid values as already shared before the workflow goes live, or the back catalogue reaches the accounts in one burst.
- Giving Instagram the article's PNG or WebP picture. Instagram publishes JPEG only, so point the post at a JPEG version of the image, or leave Instagram out for that item.
easyCoexistence gives your blog, and the AI agents around it, reach to customers on Facebook, Instagram, TikTok and more channels, each through its official API: a posts API for n8n and your scripts, one MCP connector for Claude and ChatGPT, and a queue that publishes up to 90 days ahead, with every connection monitored 24/7. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Does it work with a WordPress blog?
Yes. WordPress publishes an RSS feed of recent posts, and its Reading settings set how many posts the feed lists and whether each carries the full text or an excerpt.
How often does n8n check the feed?
As often as Poll Times says: hourly, daily, weekly or monthly, at a set number of minutes or hours, or on a cron expression of your own.
Can AI write a different post for each network?
Yes. An AI Agent node in n8n can turn one article into a short line for Facebook and a caption with hashtags for Instagram and TikTok, and Claude, on request, can write a longer LinkedIn post for a person to approve.
How much does easyCoexistence cost for sharing a blog feed?
US$ 9 to US$ 0.75 per connection per month, falling as you add connections, the same on each network. The posts API, the MCP connector and the queue are included, with the first 3 days free.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on