VM0VM0
Agent Skills

Instagram

Instagram Graph API for media management

Instagram Graph API allows reading and publishing Instagram content for business accounts.

Required Environment

NameTypeDescription
INSTAGRAM_ACCESS_TOKENsecretLong-lived access token from Facebook Developers
INSTAGRAM_BUSINESS_ACCOUNT_IDvarInstagram Business account ID

Configuration

vm0.yaml
version: "1.0"

agents:
  my-agent:
    framework: claude-code
    skills:
      - https://github.com/vm0-ai/vm0-skills/tree/main/instagram

Run

Store your secret on the platform (recommended, one-time setup):

vm0 secret set INSTAGRAM_ACCESS_TOKEN your-instagram-access-token

Then run your agent - secret is automatically loaded:

vm0 run my-agent "fetch recent Instagram posts"

For CI/CD or temporary overrides, pass secrets at runtime: --secrets INSTAGRAM_ACCESS_TOKEN=value. See Environment Variables for details.

Example Instructions

AGENTS.md
# Instagram Content Agent

You manage Instagram media content.

## Workflow

1. Fetch recent media from account
2. Get media details and engagement
3. Search by hashtag if needed
4. Report content performance

## Media Types

- IMAGE, VIDEO, CAROUSEL_ALBUM
AGENTS.md
# Instagram Publisher Agent

You publish content to Instagram.

## Workflow

1. Create media container with image URL
2. Add caption and location
3. Publish to feed
4. Return post permalink

## Requirements

- Business/Creator account
- Image must be publicly accessible URL