360 Secure SkillHub
360 安全技能中心

SocialKit Instagram Post

使用 Instagram Graph API 向 Business/Creator 账户发布单图、轮播、Reel 或 Story;先按平台规则校验文案并生成 post.json,用户在终端批准后再发布,输出帖子固定链接与当日剩余配额。不支持个人账户与定时发布。

分类:营销
ahmadhussain0335
ahmadhussain0335
热度 36.62
最近更新 2026-11-06 14:56:50

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ahmadhussain0335/socialkit-instagram-post
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
socialkit-instagram-post
description
Publishes an Instagram image, carousel, Reel or Story to a Business or Creator account through the official Instagram Graph API, after validating caption limits and getting the user's approval. Use when the user wants to post to Instagram. Personal Instagram accounts are not supported by the API.
license
MIT
metadata
{"author":"Ahmad Hussain","platform":"meta","requires":"socialkit-social-core socialkit-meta-auth"}

Instagram post

Apply socialkit-social-core. Setup: setup. Sign in with socialkit-meta-auth (--platform facebook); the Instagram account must be linked to a connected Page.

Media rules

  • Images: JPEG at a public https:// URL. Instagram downloads them; local image files cannot be uploaded. Ask the user where they host images if needed.
  • Reels and story videos: a local MP4/MOV file is uploaded directly, or use an https URL.
  • Carousel: 2 to 10 items, all by https URL.
  • No scheduling through the API.

Steps

  1. node <socialkit-social-core>/scripts/post.mjs --init --dir ig-<slug> --platform instagram --kind <image|carousel|reel|story>
  2. Write post.json caption (text) within 2,200 characters, 30 hashtags, 20 mentions; add altText to images.
  3. node scripts/publish.mjs --check --dir ig-<slug>
  4. Stop. Ask the user to approve in their own terminal: node <socialkit-social-core>/scripts/post.mjs --approve --dir ig-<slug>
  5. node scripts/publish.mjs --publish --dir ig-<slug>. Report the permalink and the remaining daily quota.

Failure handling

  • Subcode 2207052: the media URL is not publicly reachable.
  • IG_DAILY_LIMIT or subcode 2207042: daily publishing limit reached; try tomorrow.
  • IG_ACCOUNT_UNKNOWN: link a Business/Creator account to the Page, then run socialkit-meta-auth again.
  • META_MEDIA_TIMEOUT: the video is still processing; nothing was published.