ClawSkills logoClawSkills

Metricool

通过 Metricool API 安排和管理社交媒体帖子。用于发布到多个平台(LinkedIn、X、Bluesky、Threads、Instagram)、检查计划的帖子时。

介绍

# Metricool Integration

通过 Metricool 的 API 将帖子定时发布到多个社交平台。

## 设置

从 Metricool 仪表板获取您的 Metricool API 令牌。

在 `~/.moltbot/moltbot.json` 中添加环境变量: ```json { "env": { "vars": { "METRICOOL_USER_TOKEN": "your-api-token", "METRICOOL_USER_ID": "[email protected]" } } } ```

或在您的工作区 `.env` 文件中: ``` METRICOOL_USER_TOKEN=your-api-token [email protected] ```

## 脚本

### 获取品牌

列出已连接的品牌及其博客 ID:

```bash node skills/metricool/scripts/get-brands.js node skills/metricool/scripts/get-brands.js --json ```

### 定时发布帖子

```bash node skills/metricool/scripts/schedule-post.js '{ "platforms": ["linkedin", "x", "bluesky", "threads", "instagram"], "text": "Your post text here", "datetime": "2026-01-30T09:00:00", "timezone": "America/New_York", "blogId": "YOUR_BLOG_ID" }' ```

**参数:** - `platforms`:数组 — linkedin, x, bluesky, threads, instagram, facebook - `text`:字符串或包含各平台文本的对象(见下文) - `datetime`:用于定时的 ISO 日期时间 - `timezone`:时区(默认:America/Chicago) - `imageUrl`:可选的公开可访问的图片 URL - `blogId`:来自 get-brands.js 的品牌 ID

**各平台文本:** ```json { "text": { "linkedin": "Full LinkedIn post with more detail...", "x": "Short X post under 280 chars", "bluesky": "Bluesky version under 300 chars", "threads": "Threads version under 500 chars", "instagram": "Instagram with #hashtags" } } ```

### 列出已定时的帖子

```bash node skills/metricool/scripts/list-scheduled.js node skills/metricool/scripts/list-scheduled.js --start 2026-01-30 --end 2026-02-05 ```

### 获取最佳发布时间

```bash node skills/metricool/scripts/best-time.js linkedin node skills/metricool/scripts/best-time.js x ```

## 字符限制

| 平台 | 限制 | |----------|-------| | LinkedIn | 3,000 | | X/Twitter | 280 | | Bluesky | 300 | | Threads | 500 | | Instagram | 2,200 |

## 图片要求

- 必须是公开可访问的 URL(S3, GCS 等) - 推荐格式:PNG, JPG - 方形图片最适合 Instagram/Threads - 宽幅图片(1.91:1)最适合 X/LinkedIn

更多产品