Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseIntegrate with Facebook for social media management. Use when you need to: (1) post updates to Facebook pages, (2) share content and media, or (3) automate Facebook page workflows.
与Facebook集成以进行社交媒体管理。适用于以下场景:(1) 向Facebook主页发布更新,(2) 分享内容和媒体,或(3) 自动化Facebook主页工作流。
Input
输入
Provide input as JSON:
json
{
"post_content": "The content text for your Facebook post",
"page_id": "Your Facebook Page ID (optional, leave empty to post to personal timeline)",
"post_type": "Type of post: status, photo, video, or link"
}请以JSON格式提供输入:
json
{
"post_content": "The content text for your Facebook post",
"page_id": "Your Facebook Page ID (optional, leave empty to post to personal timeline)",
"post_type": "Type of post: status, photo, video, or link"
}Execution (Pattern C: Action)
执行(模式C:操作)
Step 1: Run the Skill and Get Run ID
步骤1:运行Skill并获取运行ID
bash
RESULT=$(refly skill run --id skpi-nyozn1z7255wdo122km3efhb --input '{
"page_id": "your-page-id",
"message": "Check out our latest product update!"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')bash
RESULT=$(refly skill run --id skpi-nyozn1z7255wdo122km3efhb --input '{
"page_id": "your-page-id",
"message": "Check out our latest product update!"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')RUN_ID is we-xxx format, use this for workflow commands
RUN_ID is we-xxx format, use this for workflow commands
undefinedundefinedStep 2: Open Workflow in Browser and Wait for Completion
步骤2:在浏览器中打开工作流并等待完成
bash
open "https://refly.ai/workflow/c-opg0f8e7j3m1fmjhjakmhpfk"
refly workflow status "$RUN_ID" --watch --interval 30000bash
open "https://refly.ai/workflow/c-opg0f8e7j3m1fmjhjakmhpfk"
refly workflow status "$RUN_ID" --watch --interval 30000Step 3: Confirm Action Status
步骤3:确认操作状态
bash
undefinedbash
undefinedConfirm post published
Confirm post published
STATUS=$(refly workflow detail "$RUN_ID" | jq -r '.payload.status')
echo "Action completed with status: $STATUS"
undefinedSTATUS=$(refly workflow detail "$RUN_ID" | jq -r '.payload.status')
echo "Action completed with status: $STATUS"
undefinedExpected Output
预期输出
- Type: API Response
- Format: JSON post confirmation (post ID, link)
- Action: Confirm post published successfully
- 类型:API响应
- 格式:JSON发布确认(帖子ID、链接)
- 操作:确认帖子成功发布
Rules
规则
Follow base skill workflow:
~/.claude/skills/refly/SKILL.md遵循基础Skill工作流:
~/.claude/skills/refly/SKILL.md