Post to Instagram (Feed, Story, Reels, Carousel) and Threads using the official Meta Graph API. Requires Imgur for media hosting.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install instagram-api或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install instagram-api⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/instagram-api/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Instagram API description: Post to Instagram (Feed, Story, Reels, Carousel) and Threads using the official Meta Graph API. Requires Imgur for media hosting. version: 1.1.1 author: raon requires_env: - INSTAGRAM_ACCESS_TOKEN - INSTAGRAM_BUSINESS_ACCOUNT_ID - IMGUR_CLIENT_ID ---
Meta Graph API를 사용해 Instagram과 Threads에 직접 포스팅하는 스킬. 미디어 호스팅은 Imgur API를 사용 (이미지/영상 공개 URL 생성).
---
Instagram Graph API는 공개 URL로만 미디어를 업로드할 수 있어 Imgur가 필요합니다.
raon-instagram)Anonymous usage without user authorization 선택https://localhost (Anonymous이므로 형식만 맞추면 됨)```bash export IMGUR_CLIENT_ID="your_client_id_here" ```
---
# ~/.openclaw/.env 또는 ~/.zshrc에 추가
export INSTAGRAM_ACCESS_TOKEN="your_token_here"
export INSTAGRAM_BUSINESS_ACCOUNT_ID="your_account_id_here"
# Threads (선택)
export THREADS_ACCESS_TOKEN="your_threads_token_here"
export THREADS_USER_ID="your_threads_user_id_here"
# Imgur (이미지 호스팅용 — 피드/릴스 업로드 시 필요)
export IMGUR_CLIENT_ID="your_imgur_client_id_here"
---
- instagram_basic - instagram_content_publish - pages_read_engagement
- Graph API Explorer: https://developers.facebook.com/tools/explorer/ - 장기 토큰(Long-lived token)으로 교환: 60일 유효
```bash curl "https://graph.facebook.com/v21.0/me/accounts?access_token=YOUR_TOKEN" ```
> 💡 Imgur Client ID: https://api.imgur.com/oauth2/addclient (Anonymous usage 선택)
---
bash scripts/post-feed.sh <이미지경로> <캡션파일>
# 예시
bash scripts/post-feed.sh ./photo.jpg ./caption.txt
bash scripts/post-story.sh <이미지경로>
# 예시
bash scripts/post-story.sh ./story.jpg
bash scripts/post-reels.sh <영상경로> <캡션파일>
# 예시
bash scripts/post-reels.sh ./reel.mp4 ./caption.txt
bash scripts/post-carousel.sh <캡션파일> <이미지1> <이미지2> [이미지3...]
# 예시
bash scripts/post-carousel.sh ./caption.txt ./img1.jpg ./img2.jpg ./img3.jpg
bash scripts/post-threads.sh <캡션파일> [이미지URL]
# 예시 (텍스트만)
bash scripts/post-threads.sh ./caption.txt
# 예시 (이미지 포함)
bash scripts/post-threads.sh ./caption.txt "https://example.com/image.jpg"
---
instagram-api/
├── SKILL.md # 이 파일
└── scripts/
├── post-feed.sh # 피드 포스팅
├── post-story.sh # 스토리 포스팅
├── post-reels.sh # 릴스 포스팅
├── post-carousel.sh # 캐러셀 포스팅
└── post-threads.sh # Threads 포스팅
---
~/logs/sns/ 로그 확인安装 Instagram Api 后,可以对 AI 说这些话来触发它
Help me get started with Instagram Api
Explains what Instagram Api does, walks through the setup, and runs a quick demo based on your current project
Use Instagram Api to post to Instagram (Feed, Story, Reels, Carousel) and Threads using ...
Invokes Instagram Api with the right parameters and returns the result directly in the conversation
What can I do with Instagram Api in my marketing & growth workflow?
Lists the top use cases for Instagram Api, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/instagram-api/ 目录(个人级,所有项目可用),或 .claude/skills/instagram-api/(项目级)。重启 AI 客户端后,用 /instagram-api 主动调用,或让 AI 根据上下文自动发现并使用。
Instagram Api 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Instagram Api 可免费安装使用。请查阅仓库了解许可证信息。
Post to Instagram (Feed, Story, Reels, Carousel) and Threads using the official Meta Graph API. Requires Imgur for media hosting.
Instagram Api 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Instagram Api
Identifies repetitive steps in your workflow and sets up Instagram Api to handle them automatically