New New: Meridian, the company website and growth platform, and Feilun, the AI growth platform View products →

Publishing to many accounts reliably: the WeChat API, browser publishing and the clipper

Engineering By SREYUN 2 views

Once posts are written, they have to go out. The hard part is that every platform is different: WeChat Official Accounts have an official API, Xiaohongshu and Zhihu offer no publishing API on the web, and one platform often has several accounts. Feilun's approach is use the API where there is one, and hand the rest to the user's own browser, all managed by one task mechanism.

Binding accounts

Under publishing accounts, each platform can have several accounts. A WeChat Official Account needs its AppID and AppSecret, with the server IP added to the allow list in the WeChat admin; Xiaohongshu and Zhihu store no passwords in the platform at all and rely on the session already signed in in the browser.

WeChat Official Accounts: the official API

  • Save as draft: the post and its images go to the draft box; saving the same post again updates that draft instead of creating a new one;
  • Publish: on success the article link is recorded and the post is marked published;
  • Clear failures: errors such as an IP missing from the allow list or no API permission are shown in plain language in the publishing center, with no WeChat error codes to look up.

Note that publishing through the API does not push to followers or use a broadcast slot; broadcasting is still done on the draft in the WeChat admin. Personal or unverified accounts may lack the publishing permission, in which case drafts alone can be used.

Xiaohongshu and Zhihu: publishing from the browser

The clipper is Feilun's own browser extension. In a browser signed in to the platform account, it claims publishing tasks once a minute, uploads images, fills in the title and body and adds topics in the creator center, then saves and leaves, publishes, or stops for you to confirm, as the task says. For the first run, choose "fill in and wait for me" and check once before letting it publish.

Rules that make tasks reliable

MechanismEffect
No duplicatesThe same post, account and action is never queued twice while one is queued or running
LeaseA claimed task has a 15-minute lease; without a report in time it is queued again
Retry capAt most three attempts, then the task fails with a reason (for example the browser was closed or not signed in)
Late resultsIf the original attempt reports success after the task was re-queued, the result is still accepted
Auto draftWith "save a draft after approval" on, approving a post creates a task for that account right away

If a page redesign hides a control, the clipper stops, keeps the tab open and writes the reason in the publishing center instead of clicking around. Every result, failure reason and retry button is in the publishing center.

The same clipper also collects

The clipper's other job is collecting user voices: clip the current post while browsing Xiaohongshu, Zhihu, Weibo or Douyin, clip a whole page of search results or feed items at once, or right-click selected text on any page. Clipped content goes through the same masking, de-duplication, heat, tagging, clustering and opportunity scoring as any other source, and clipping a post again refreshes its engagement.

With auto-collect on, the rules are deliberately conservative: 15 seconds between items, at most 150 per day, and no post opened again within 7 days by default; as soon as a sign-in or security check page appears, it pauses and notifies you, and never tries to get around the check.

Tips for the first run

  1. Bind accounts under publishing accounts: for a WeChat Official Account, add the server IP to the allow list in the WeChat admin first, then enter the AppID and AppSecret;
  2. install the clipper in your usual browser, sign in to Xiaohongshu and Zhihu, and open the auto-publish settings straight from the clipper's popup;
  3. publish the first post with "fill in and wait for me", check the images, title, body and topics on the creator page, and only then allow automatic publishing;
  4. from then on, the publishing center shows each task's result, failure reason and a retry button.

Note that Xiaohongshu web drafts saved with "save and leave" stay in that browser's local storage and are not visible from another computer, and queued browser tasks say in the publishing center what they are waiting for, such as a closed browser or a signed-out account.

As few extension permissions as possible

The extension asks only for storage, the active tab, script injection, context menus, alarms and notifications, and requests site access as needed. It talks to Feilun with a personal API token that the server stores only as a hash and that stops working when the account is disabled. Auto-publishing is covered by eight headless-browser end-to-end scenarios, including save as draft, publish, fill in and wait, not signed in, security check and recovery after a background interruption.

How posts perform and whether to keep investing is covered in "How the investment score is calculated". Learn more on the Feilun product page.

Related articles