{"skill":{"slug":"instagram-posts","displayName":"Instagram","summary":"Manage Instagram Business and Creator accounts via the Instagram Graph API. Publish posts and carousels, retrieve media and insights, moderate comments, send...","description":"---\nname: instagram-posts\ndescription: Manage Instagram Business and Creator accounts via the Instagram Graph API. Publish posts and carousels, retrieve media and insights, moderate comments, send DMs, and manage story content. Use this skill when users want to manage Instagram content, analyze engagement, or automate social media workflows.\n---\n\n# Instagram\n\n![Instagram](https://raw.githubusercontent.com/ClawLink-HQ/clawlink/main/public/images/brand-logos/instagram.svg)\n\nManage an Instagram Business or Creator account via the Instagram Graph API. Publish posts and carousels, retrieve media and insights, moderate comments, send direct messages, and monitor story content.\n\nThis skill uses [ClawLink](https://claw-link.dev/?utm_source=clawhub&utm_medium=referral&utm_content=instagram-posts) for hosted connection flows and credentials so you do not need to configure Instagram API access yourself.\n\n### Setup in 3 Steps\n\n| Step 1: Install | Step 2: Pair Account | Step 3: Connect Instagram |\n|:---:|:---:|:---:|\n| ![Install](https://raw.githubusercontent.com/ClawLink-HQ/clawlink/main/public/images/pairing/initialstep_1.gif) | ![Pair](https://raw.githubusercontent.com/ClawLink-HQ/clawlink/main/public/images/approve_process.gif) | ![Connect](https://raw.githubusercontent.com/ClawLink-HQ/clawlink/main/public/images/instagram.gif) |\n| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Instagram |\n\n## How It Works\n\n```\n┌─────────────────┐     ┌──────────────┐     ┌──────────────────┐\n│   OpenClaw      │────▶│   ClawLink   │────▶│ Instagram Graph  │\n│   (User Chat)   │     │   (OAuth)    │     │   (API v22)     │\n└─────────────────┘     └──────────────┘     └──────────────────┘\n         │                       │                       │\n         │  1. Install Plugin  │                       │\n         │  2. Pair Device   │                       │\n         │  3. Connect IG    │                       │\n         │                   │  4. Secure Token      │\n         │                   │  5. Proxy Requests    │\n         │                   │                       │\n         ▼                   ▼                       ▼\n   ┌──────────┐      ┌──────────┐           ┌──────────┐\n   │  SKILL   │      │ Dashboard│           │ Instagram│\n   │  File    │      │ Auth     │           │ Business │\n   └──────────┘      └──────────┘           └──────────┘\n```\n\n## Install\n\nInstall the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.\n\n```bash\nopenclaw plugins install clawhub:clawlink-plugin\nopenclaw config set tools.alsoAllow '[\"clawlink-plugin\"]' --strict-json\nopenclaw gateway restart\n```\n\nThen tell the user: \"OpenClaw has been restarted. Send `/new` as a standalone message to start a fresh chat, then ask for Instagram again.\"\n\n## Quick Start\n\n```bash\n# Get your Instagram account info\nclawlink_call_tool --tool \"instagram_get_user_info\" --params '{}'\n\n# List recent media posts\nclawlink_call_tool --tool \"instagram_get_ig_user_media\" --params '{}'\n\n# Get insights on a specific post\nclawlink_call_tool --tool \"instagram_get_ig_media_insights\" --params '{\"media_id\": \"MEDIA_ID\"}'\n```\n\n## Authentication\n\nAll Instagram tool calls are authenticated automatically by ClawLink using the user's connected Instagram Business or Creator account.\n\n**No API key is required in chat.** ClawLink stores the OAuth token securely and injects it into every Instagram Graph API request on the user's behalf.\n\n### Getting Connected\n\n1. Install the ClawLink plugin (see Install above).\n2. Pair the plugin with `clawlink_begin_pairing` if it is not configured yet.\n3. Open https://claw-link.dev/dashboard?add=instagram and connect Instagram (requires a Business or Creator account).\n4. Call `clawlink_list_integrations` to verify the connection is active.\n\n## Connection Management\n\n### List Connections\n\n```bash\nclawlink_list_integrations\n```\n\n**Response:** Returns all connected integrations. Look for `instagram` in the list.\n\n### Verify Connection\n\n```bash\nclawlink_list_tools --integration instagram\n```\n\n**Response:** Returns the live tool catalog for Instagram.\n\n### Reconnect\n\nIf Instagram tools are missing or the connection shows an error:\n\n1. Direct the user to https://claw-link.dev/dashboard?add=instagram\n2. After they confirm, call `clawlink_list_integrations` to verify\n3. Then call `clawlink_list_tools --integration instagram`\n\n## Security & Permissions\n\n- Access is scoped to the connected Instagram Business or Creator account only.\n- A Business or Creator account is required — personal Instagram accounts are not supported by the Instagram Graph API.\n- **All write operations require explicit user confirmation.** Before executing any publish, comment, or DM action, confirm the target resource and intended effect with the user.\n- Destructive actions (delete comment, delete message) are marked as high-impact and must be confirmed.\n- Content publishing is rate-limited by Instagram (25 posts per 24-hour window per account).\n\n## Tool Reference\n\n### Media Retrieval & Publishing\n\n| Tool | Description | Mode |\n|------|-------------|------|\n| `instagram_get_ig_user_media` | List all media (posts, photos, videos, reels, carousels) published by the account | Read |\n| `instagram_get_ig_media` | Get details for a specific published media item including engagement metrics | Read |\n| `instagram_get_ig_media_children` | Get individual media items from a carousel/album post | Read |\n| `instagram_post_ig_user_media` | Create a media container for publishing (first step of two-step publish) | Write |\n| `instagram_post_ig_user_media_publish` | Publish a media container to the account (auto-waits for processing) | Write |\n| `instagram_create_carousel_container` | Create a draft carousel post with 2–10 images/videos | Write |\n\n### Insights & Analytics\n\n| Tool | Description | Mode |\n|------|-------------|------|\n| `instagram_get_user_insights` | Get account-level insights (profile views, reach, follower count) | Read |\n| `instagram_get_ig_media_insights` | Get per-media performance metrics (views, likes, comments, saves, shares) | Read |\n| `instagram_get_user_info` | Get profile details and statistics for the Business/Creator account | Read |\n| `instagram_get_ig_user_content_publishing_limit` | Check remaining publish quota before posting | Read |\n\n### Comments & Replies\n\n| Tool | Description | Mode |\n|------|-------------|------|\n| `instagram_get_ig_media_comments` | List comments on a specific post with cursor-based pagination | Read |\n| `instagram_get_ig_comment_replies` | Get replies to a specific comment | Read |\n| `instagram_post_ig_media_comments` | Post a comment on a media item (300 chars max, 4 hashtags, 1 URL) | Write |\n| `instagram_post_ig_comment_replies` | Reply to an existing comment (300 chars max) | Write |\n| `instagram_delete_comment` | Delete a comment (only comments your account created) | Write |\n\n### Stories & Live\n\n| Tool | Description | Mode |\n|------|-------------|------|\n| `instagram_get_ig_user_stories` | List active stories within the 24-hour story window | Read |\n| `instagram_get_ig_user_live_media` | Get live media during an active broadcast | Read |\n\n### Conversations & Messaging\n\n| Tool | Description | Mode |\n|------|-------------|------|\n| `instagram_list_all_conversations` | List all Instagram DM conversations | Read |\n| `instagram_get_conversation` | Get details of a specific DM conversation | Read |\n| `instagram_list_all_messages` | List messages in a specific DM thread | Read |\n| `instagram_send_text_message` | Send a text DM (requires prior conversation thread) | Write |\n| `instagram_send_image` | Send an image via DM | Write |\n| `instagram_mark_seen` | Mark messages as read in a DM thread | Write |\n| `instagram_get_page_conversations` | Get conversations for the connected Page | Read |\n\n### Messaging Configuration\n\n| Tool | Description | Mode |\n|------|-------------|------|\n| `instagram_get_messenger_profile` | Get ice breakers and messaging settings | Read |\n| `instagram_update_messenger_profile` | Configure ice breakers for the Instagram inbox | Write |\n| `instagram_delete_messenger_profile` | Remove messaging configuration | Write |\n\n### Mentions & Tags\n\n| Tool | Description | Mode |\n|------|-------------|------|\n| `instagram_get_ig_user_tags` | Get media where your account was tagged by others | Read |\n| `instagram_post_ig_user_mentions` | Reply to a mention of your account | Write |\n\n## Code Examples\n\n### Get account info and insights\n\n```bash\nclawlink_call_tool --tool \"instagram_get_user_info\" \\\n  --params '{}'\n```\n\n### List recent posts with insights\n\n```bash\nclawlink_call_tool --tool \"instagram_get_ig_user_media\" \\\n  --params '{}'\n```\n\n### Get insights for a specific post\n\n```bash\nclawlink_call_tool --tool \"instagram_get_ig_media_insights\" \\\n  --params '{\"media_id\": \"MEDIA_ID\"}'\n```\n\n### Post a comment\n\n```bash\nclawlink_call_tool --tool \"instagram_post_ig_media_comments\" \\\n  --params '{\"media_id\": \"MEDIA_ID\", \"text\": \"Great post! Thanks for sharing.\"}'\n```\n\n### Send a DM\n\n```bash\nclawlink_call_tool --tool \"instagram_send_text_message\" \\\n  --params '{\"message\": \"Hi! Thanks for reaching out.\", \"conversation_id\": \"CONVERSATION_ID\"}'\n```\n\n## Discovery Workflow\n\n1. Call `clawlink_list_integrations` to confirm Instagram is connected.\n2. Call `clawlink_list_tools --integration instagram` to see the live catalog.\n3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.\n4. If the user describes a capability but the exact tool is unclear, call `clawlink_search_tools` with a short query and integration `instagram`.\n5. If no Instagram tools appear, direct the user to https://claw-link.dev/dashboard?add=instagram.\n\n## Execution Workflow\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│  READ OPERATIONS (Safe)                                     │\n│  list → get → search → describe → call                      │\n│                                                             │\n│  Example: List media → Get insights → Show results          │\n└─────────────────────────────────────────────────────────────┘\n                              │\n                              ▼\n┌─────────────────────────────────────────────────────────────┐\n│  WRITE OPERATIONS (Require Confirmation)                     │\n│  list → get → describe → preview → confirm → call           │\n│                                                             │\n│  Example: Preview comment → User approves → Execute         │\n└─────────────────────────────────────────────────────────────┘\n```\n\n1. For unfamiliar tools, ambiguous requests, or any write action, call `clawlink_describe_tool` first.\n2. Use the returned guidance, schema, `whenToUse`, `askBefore`, `safeDefaults`, `examples`, and `followups` to shape the call.\n3. Prefer read, list, search, and get operations before writes when that reduces ambiguity.\n4. For writes or anything marked as requiring confirmation, call `clawlink_preview_tool` first.\n5. Execute with `clawlink_call_tool`. Pass confirmation only after the preview matches the user's intent.\n6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.\n\n## Notes\n\n- Only **Business** or **Creator** Instagram accounts are supported — personal accounts return permission errors.\n- Content publishing is limited to 25 API-published posts per 24-hour moving window per account.\n- Media container `creation_id`s expire in under 24 hours — publish promptly after creating a container.\n- Comments are limited to 300 characters, 4 hashtags, and 1 URL.\n- DMs can only be sent in existing conversation threads — new threads cannot be initiated via the API.\n- Insights data is only available for posts published within the last 2 years and requires at least 1,000 followers.\n- Instagram IDs in API responses use the format `1784140xxxxx` (not numeric strings).\n\n## Error Handling\n\n| Status / Error | Meaning |\n|----------------|---------|\n| Tool not found | The tool name does not exist in the current catalog. Verify with `clawlink_list_tools --integration instagram`. |\n| Missing connection | Instagram is not connected. Direct the user to https://claw-link.dev/dashboard?add=instagram. |\n| Permission error | The account is a personal Instagram profile, not a Business/Creator account. |\n| ` OAuthException` | Instagram OAuth token is invalid or expired. Reconnect Instagram. |\n| Rate limit exceeded | Publishing quota used. Wait or reduce publish frequency. |\n| Write rejected | User did not confirm a write action. Always confirm before executing writes. |\n\n### Troubleshooting: Tools Not Visible\n\n1. Check that the ClawLink plugin is installed:\n   ```bash\n   openclaw plugins list\n   ```\n2. If the plugin is installed but tools are missing, tell the user to send `/new` as a standalone message to reload the catalog.\n3. If a fresh chat does not help, run:\n   ```bash\n   openclaw config set tools.alsoAllow '[\"clawlink-plugin\"]' --strict-json\n   openclaw gateway restart\n   ```\n4. After restart, tell the user to send `/new` again and retry.\n\n### Troubleshooting: Permission Errors\n\n1. Confirm the Instagram account is a **Business** or **Creator** account, not personal.\n2. Verify the account is connected at https://claw-link.dev/dashboard?add=instagram.\n3. For messaging tools, ensure the Instagram account has the **Instagram Messaging** permission scope.\n\n## Resources\n\n- [Instagram Graph API Overview](https://developers.facebook.com/docs/instagram-api)\n- [Instagram Media Publishing API](https://developers.facebook.com/docs/instagram-api/reference/ig-media)\n- [Instagram Insights API](https://developers.facebook.com/docs/instagram-api/reference/ig-user/insights)\n- [Instagram Messaging API](https://developers.facebook.com/docs/instagram-api/reference/ig-user/conversations)\n- ClawLink: https://claw-link.dev/?utm_source=clawhub&utm_medium=referral&utm_content=instagram-posts\n- ClawLink Docs: https://docs.claw-link.dev/openclaw\n- ClawLink Verification: https://claw-link.dev/verify\n\n## Related Skills\n\n- [LinkedIn Social](https://clawhub.ai/hith3sh/linkedin-social) — For LinkedIn page and post management\n- [Twitter](https://clawhub.ai/hith3sh/twitter) — For Twitter/X post management and analytics\n- [Facebook Pages](https://clawhub.ai/hith3sh/facebook-pages) — For Facebook Page management\n\n---\n\n**Powered by [ClawLink](https://claw-link.dev/?utm_source=clawhub&utm_medium=referral&utm_content=instagram-posts)** — an integration hub for OpenClaw\n\n![ClawLink Logo](https://raw.githubusercontent.com/ClawLink-HQ/clawlink/main/public/images/logo/link_logo_black_small.png)\n","tags":{"latest":"1.0.5"},"stats":{"comments":0,"downloads":1768,"installsAllTime":8,"installsCurrent":8,"stars":6,"versions":5},"createdAt":1777822317685,"updatedAt":1780989111278},"latestVersion":{"version":"1.0.5","createdAt":1780989111278,"changelog":"Add UTM attribution tags (utm_source=clawhub) to ClawLink branding links so visits from this skill page are tracked as a distinct traffic source.","license":"MIT-0"},"metadata":null,"owner":{"handle":"hith3sh","userId":"s173vws87a7ss71xf9rq53k5gd8568kv","displayName":"Jay","image":"https://avatars.githubusercontent.com/u/83839061?v=4"},"moderation":null}