Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

instagram-api

bởi lifeissea

Media & Streaming
1.2kLượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Post to Instagram (Feed, Story, Reels, Carousel) and Threads using the official Meta Graph API.

Mô tả

Kỹ năng này làm gì

Posts to Instagram and Threads via the official Meta Graph API. Supports feed posts, stories, reels, and carousels. Uses Imgur to generate public URLs for local media files, which the Instagram API requires.

Uses the official Meta Graph API directly, avoiding third-party scheduling tools that require separate subscriptions or browser automation.

Khi nào nên dùng

  • Posting a product photo to an Instagram feed
  • Publishing a short video clip as a reel
  • Scheduling a carousel of event photos
  • Sharing a story image from a local file
  • Cross-posting a caption to Threads

Quy trình ví dụ

ĐẦU VÀO

User asks: post ./photo.jpg to Instagram feed with caption from ./caption.txt

AGENT
  1. 1

    Upload ./photo.jpg to Imgur using IMGUR_CLIENT_ID to get a public URL

  2. 2

    Call Meta Graph API to create a media container with the public URL and caption text

  3. 3

    Submit the container ID to the publish endpoint using INSTAGRAM_BUSINESS_ACCOUNT_ID and INSTAGRAM_ACCESS_TOKEN

  4. 4

    Check API response for post ID confirming successful publish

ĐẦU RA

Instagram feed post published with the provided image and caption

Yêu cầu

  • INSTAGRAM_ACCESS_TOKEN environment variable (Meta Graph API long-lived token)
  • INSTAGRAM_BUSINESS_ACCOUNT_ID environment variable
  • IMGUR_CLIENT_ID environment variable (from api.imgur.com/oauth2/addclient, anonymous usage)
  • Meta for Developers account with a Business-type app and instagram_content_publish permission
  • Threads posting requires THREADS_ACCESS_TOKEN and THREADS_USER_ID environment variables

Cài đặt

clawhub install lifeissea/instagram-api

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết