x-post

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

X/Twitter Post

X/Twitter 帖子发布

Create and schedule posts to X (Twitter) using the Publora MCP server. Supports text posts, images (up to 4), videos, and automatic thread splitting for long-form content.
使用Publora MCP服务器创建并调度X(Twitter)帖子。支持文字帖子、图片(最多4张)、视频,以及针对长内容的自动分线程功能。

Prerequisites

前提条件

Plans: Pro ($2.99/account/month), Premium ($9.99/account/month)
Important: X/Twitter is NOT available on the free Starter plan due to Twitter API costs.
套餐: Pro(2.99美元/账户/月)、Premium(9.99美元/账户/月)
重要提示: 由于Twitter API成本原因,免费的Starter套餐不支持X/Twitter功能。

Getting Started

快速开始

  1. Create account at publora.com/register
  2. Choose Pro or Premium plan (X/Twitter requires paid plan)
  3. Connect X/Twitter via OAuth in Publora Dashboard
  4. Get API key at publora.com/settings/api
  5. Configure MCP in Claude Desktop (
    ~/.claude/claude_desktop_config.json
    ):
json
{
  "mcpServers": {
    "publora": {
      "type": "http",
      "url": "https://mcp.publora.com",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
  1. publora.com/register创建账户
  2. 选择Pro或Premium套餐(X/Twitter需要付费套餐)
  3. Publora控制台通过OAuth关联X/Twitter
  4. publora.com/settings/api获取API密钥
  5. 在Claude Desktop中配置MCP(
    ~/.claude/claude_desktop_config.json
    ):
json
{
  "mcpServers": {
    "publora": {
      "type": "http",
      "url": "https://mcp.publora.com",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

REST API Fallback

REST API备用方案

If MCP is unavailable, use the REST API directly:
Base URL:
https://api.publora.com/api/v1
Authentication:
x-publora-key
header
bash
undefined
如果MCP不可用,可直接使用REST API:
基础URL:
https://api.publora.com/api/v1
身份验证:
x-publora-key
请求头
bash
undefined

Get connected platforms

获取已关联平台

curl -X GET "https://api.publora.com/api/v1/platform-connections"
-H "x-publora-key: sk_your_api_key"
curl -X GET "https://api.publora.com/api/v1/platform-connections"
-H "x-publora-key: sk_your_api_key"

Create a post

创建帖子

curl -X POST "https://api.publora.com/api/v1/create-post"
-H "x-publora-key: sk_your_api_key"
-H "Content-Type: application/json"
-d '{ "platforms": ["twitter-123456789"], "content": "Your tweet content", "scheduledTime": "2026-03-25T10:00:00Z" }'

**Platform ID Format:** `twitter-{id}` (e.g., `twitter-123456789`)

📖 **Docs:** [docs.publora.com](https://docs.publora.com)
curl -X POST "https://api.publora.com/api/v1/create-post"
-H "x-publora-key: sk_your_api_key"
-H "Content-Type: application/json"
-d '{ "platforms": ["twitter-123456789"], "content": "Your tweet content", "scheduledTime": "2026-03-25T10:00:00Z" }'

**平台ID格式:** `twitter-{id}`(例如:`twitter-123456789`)

📖 **文档:** [docs.publora.com](https://docs.publora.com)

Plan Limits

套餐限制

PlanPosts/monthPrice
StarterNot availableFree
Pro100/account$2.99/account/month
Premium500/account$9.99/account/month
套餐每月帖子数量价格
Starter不支持免费
Pro100/账户2.99美元/账户/月
Premium500/账户9.99美元/账户/月

Platform Limits

平台限制

FeatureAPI LimitNotes
Characters280Emojis count as 2 characters
ImagesUp to 4Auto-converted to PNG (max 1000px width)
Video duration2 minutesAPI limit (native app allows 2:20)
Video size512 MBMP4, MOV formats
ThreadingAutomaticContent over 280 chars split with
(1/N)
markers
功能API限制说明
字符数280表情符号算作2个字符
图片数量最多4张自动转换为PNG格式(最大宽度1000px)
视频时长2分钟API限制(原生应用允许2分20秒)
视频大小512 MB支持MP4、MOV格式
分线程自动处理超过280字符的内容会以
(1/N)
标记拆分

Character Counting

字符计数规则

X has specific character counting rules that Publora handles automatically:
  • Standard characters = 1
  • Emojis = 2 characters
  • URLs counted by literal length
  • Thread markers reserve 10 characters per tweet
X平台有特定的字符计数规则,Publora会自动处理:
  • 标准字符 = 1个字符
  • 表情符号 = 2个字符
  • URL按实际长度计数
  • 分线程标记每条推文占用10个字符

Auto-Threading

自动分线程

When content exceeds 280 characters, Publora automatically creates a connected thread:
  1. Content split at paragraph breaks, then sentence boundaries, then word boundaries
  2. Each part numbered with
    (1/N)
    ,
    (2/N)
    format
  3. Tweets connected via X's
    reply_to_id
    parameter
当内容超过280字符时,Publora会自动创建关联的线程:
  1. 内容先按段落拆分,再按句子边界拆分,最后按单词边界拆分
  2. 每个部分以
    (1/N)
    (2/N)
    格式编号
  3. 推文通过X平台的
    reply_to_id
    参数关联

Manual Thread Breaks

手动分线程断点

Use
---
on its own line to force a thread break:
This is my first tweet in the thread.

---

This is my second tweet in the thread.

---

And this is my third tweet!
单独一行使用
---
可强制拆分线程:
This is my first tweet in the thread.

---

This is my second tweet in the thread.

---

And this is my third tweet!

Available Tools

可用工具

create_post

create_post

Create a new X/Twitter post or thread.
Parameters:
  • platforms
    : Array with your X connection ID (e.g.,
    ["twitter-12345678"]
    )
  • content
    : Post text (auto-threads if over 280 chars)
  • scheduledTime
    : ISO 8601 datetime (required - for immediate posting, use current time + 1 minute)
创建新的X/Twitter帖子或线程。
参数:
  • platforms
    : 包含你的X关联ID的数组(例如:
    ["twitter-12345678"]
  • content
    : 帖子文本(超过280字符时自动分线程)
  • scheduledTime
    : ISO 8601格式的日期时间(必填 - 如需立即发布,使用当前时间+1分钟)

get_upload_url

get_upload_url

Get presigned URL for media uploads.
Parameters:
  • postGroupId
    : Post ID to attach media to
  • fileName
    : File name (e.g., "image.png", "video.mp4")
  • contentType
    :
    image/png
    ,
    image/jpeg
    ,
    video/mp4
  • type
    :
    "image"
    or
    "video"
获取用于媒体上传的预签名URL。
参数:
  • postGroupId
    : 要附加媒体的帖子ID
  • fileName
    : 文件名(例如:"image.png", "video.mp4")
  • contentType
    :
    image/png
    ,
    image/jpeg
    ,
    video/mp4
  • type
    :
    "image"
    "video"

list_posts / update_post / delete_post

list_posts / update_post / delete_post

Manage scheduled and draft posts.
管理已调度和草稿状态的帖子。

Examples

示例

Simple Tweet

简单推文

Post this to X:
"Just shipped our new API documentation. Check it out!"
Post this to X:
"Just shipped our new API documentation. Check it out!"

Tweet with Images

带图片的推文

Post this to Twitter with screenshots of the new dashboard:
"Before and after our redesign. What do you think?"
Note: Up to 4 images allowed. All images auto-converted to PNG.
Post this to Twitter with screenshots of the new dashboard:
"Before and after our redesign. What do you think?"
注意:最多允许4张图片,所有图片会自动转换为PNG格式。

Long-Form Thread

长内容线程

Create a Twitter thread:
"Thread: 5 lessons from building our startup

---

1. Ship early, iterate fast. We launched with a buggy MVP and improved based on real feedback.

---

2. Talk to users daily. Our best features came from customer conversations.

---

3. Focus beats features. We killed 3 products to focus on the one that worked."
Create a Twitter thread:
"Thread: 5 lessons from building our startup

---

1. Ship early, iterate fast. We launched with a buggy MVP and improved based on real feedback.

---

2. Talk to users daily. Our best features came from customer conversations.

---

3. Focus beats features. We killed 3 products to focus on the one that worked."

Scheduled Tweet

定时推文

Schedule this for tomorrow at 9 AM:
"Monday motivation: Start before you're ready."
Schedule this for tomorrow at 9 AM:
"Monday motivation: Start before you're ready."

Important Restrictions

重要限制

  1. Pro plan required: X/Twitter is excluded from the free Starter plan due to Twitter API costs.
  2. 2-minute video limit: The X API limits videos to 2 minutes, even though the native app allows longer videos.
  3. Image auto-conversion: All images are converted to PNG (max 1000px width) before upload. Animated GIFs lose animation.
  4. No image+video mix: A tweet can have images OR video, not both.
  5. Media on first tweet only: In threads, images/video attach to the first tweet only.
  1. 需Pro套餐:由于Twitter API成本原因,免费Starter套餐不支持X/Twitter功能。
  2. 2分钟视频限制:X API限制视频时长为2分钟,即使原生应用允许更长时长。
  3. 图片自动转换:所有图片上传前会转换为PNG格式(最大宽度1000px),动态GIF会失去动画效果。
  4. 不可混合图片与视频:一条推文只能包含图片或视频,不能同时包含两者。
  5. 媒体仅可附加到首条推文:在线程中,图片/视频只能附加到第一条推文。

Best Practices

最佳实践

Content

内容创作

  1. Hook in first line: Most engagement happens on the first tweet
  2. Optimal thread length: 3-7 tweets for best engagement
  3. Emoji awareness: Remember emojis count as 2 characters
  1. 首行设置钩子:大部分互动发生在第一条推文
  2. 最优线程长度:3-7条推文的互动效果最佳
  3. 注意表情符号计数:记住表情符号算作2个字符

Timing

发布时机

  • Best times: 8-10 AM, 12-1 PM, 5-6 PM in target timezone
  • Frequency: 3-5 tweets per day for growth
  • Threads: Post in morning for maximum visibility
  • 最佳时段:目标时区的8-10点、12-13点、17-18点
  • 发布频率:每天3-5条推文以实现增长
  • 线程发布:上午发布可获得最大曝光

Engagement

互动技巧

  • Reply to comments within the first hour
  • Quote tweet your own threads for visibility
  • Use relevant hashtags (1-2 per tweet)
  • 评论发布后1小时内回复
  • 引用转发自己的线程以增加曝光
  • 使用相关话题标签(每条推文1-2个)

Troubleshooting

故障排除

ErrorCauseSolution
"X/Twitter requires Pro plan"Using Starter planUpgrade to Pro at publora.com/settings
"Content too long"Over 280 chars and threading failedAdd manual
---
breaks
"Video too long"Over 2 minutesTrim video to under 2 minutes
"Too many images"More than 4 imagesReduce to 4 or fewer
"Rate limit exceeded"X API limit reachedWait and retry
错误信息原因解决方案
"X/Twitter requires Pro plan"使用Starter套餐在publora.com/settings升级到Pro套餐
"Content too long"超过280字符且自动分线程失败添加手动
---
断点
"Video too long"视频时长超过2分钟将视频修剪至2分钟以内
"Too many images"图片数量超过4张减少至4张或更少
"Rate limit exceeded"达到X API限制等待后重试