instagram_skill

This skill enables reading and publishing Instagram media using curl against the Graph API, simplifying token management and media workflows.
  • Shell

39

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill vm0-ai/vm0-skills --skill instagram

  • SKILL.md7.0 KB

Overview

This skill integrates with the Instagram Graph API using curl to read and publish Instagram media from a Business or Creator account. It provides concrete curl examples for fetching recent media, retrieving media details, searching by hashtag, and publishing image posts. The examples assume environment variables for access token and business account ID are set.

How this skill works

The skill executes direct HTTP requests against the Graph API endpoints (e.g., /{ig_user}/media, /{media-id}, ig_hashtag_search, and /{ig_user}/media_publish) using curl. It demonstrates the two-step publish flow (create media container, then publish) and shows how to request specific fields for media metadata. Commands are wrapped with bash -c where needed to preserve environment variables in piped commands.

When to use it

  • Fetch the account's recent photos, videos, and Reels for display or processing
  • Retrieve full metadata for a specific media item (caption, url, permalink, timestamp)
  • Search recent public content for a hashtag when building discovery or analytics features
  • Programmatically publish image posts with captions from CI/CD or automation scripts
  • Troubleshoot permissions, account type issues, or rate-limit errors when integrating Instagram

Best practices

  • Keep INSTAGRAM_ACCESS_TOKEN and INSTAGRAM_BUSINESS_ACCOUNT_ID in environment variables and never log the token
  • Validate all curl commands in a safe test environment before automating in production
  • Ensure the Instagram account is Business/Creator and linked to a Facebook Page
  • Request and verify required permissions (instagram_basic, instagram_content_publish, pages_show_list) and app review where needed
  • Monitor API versioning and update the v21.0 path to the current Graph API version periodically

Example use cases

  • A dashboard that lists recent media and links to each Instagram post
  • An automation that publishes scheduled promotional images via API
  • A social listening tool that collects recent posts for a hashtag for sentiment analysis
  • A reporting job that fetches media metadata and stores it for analytics or archiving
  • A troubleshooting checklist when receiving permission or account-type errors from the Graph API

FAQ

You need a long-lived INSTAGRAM_ACCESS_TOKEN and your INSTAGRAM_BUSINESS_ACCOUNT_ID, and the Instagram account must be Business/Creator linked to a Facebook Page.

Why are some commands wrapped with bash -c?

Wrapping in bash -c preserves environment variables when piping or otherwise using subshells; some environments clear variables across pipes.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
instagram skill by vm0-ai/vm0-skills | VeilStrat