Meta Graph API

API

Meta's API for Instagram and Facebook Page posts, comments and insights

Price
Free
Access
User or Page access token (OAuth)

About

Meta's Graph API lets apps publish to Instagram professional accounts and Facebook Pages, moderate comments, answer Instagram DMs and read insights. Personal Instagram accounts are not supported, and serving accounts you do not manage needs App Review and Business Verification.

What you can do with it

  • Publish photos, reels and carousels to Instagram professional accounts
  • Publish, schedule and read Facebook Page posts and Page insights
  • Moderate comments and answer Instagram DMs for a business account

Get started

  1. Create a Meta app and add the Instagram or Pages use case
  2. Get a long-lived token through Instagram or Facebook Login
  3. Pass App Review before serving accounts you do not manage

Example

# 1) Create a media container from a public image URL
curl -X POST "https://graph.instagram.com/v25.0/$IG_USER_ID/media" \
  -H "Authorization: Bearer $IG_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://www.example.com/images/photo.jpg","caption":"Hello"}'
# 2) Publish the container using the id returned above
curl -X POST "https://graph.instagram.com/v25.0/$IG_USER_ID/media_publish" \
  -H "Authorization: Bearer $IG_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"creation_id":"'"$IG_CONTAINER_ID"'"}'

Details

Hosting
Hosted service
Available in
Worldwide
Official SDKs
Python, JavaScript/TypeScript, PHP, Java, Ruby
MCP server
None
Works with
Instagram, Facebook

Tasks

Alternatives

Other tools for the same tasks.

Last checked on .