Meta Graph API
APIMeta's API for Instagram and Facebook Page posts, comments and insights
- Fiyat
- Free
- Erişim
- User or Page access token (OAuth)
Hakkında
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.
Neler yapabilirsin
- 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
Başlarken
- Create a Meta app and add the Instagram or Pages use case
- Get a long-lived token through Instagram or Facebook Login
- Pass App Review before serving accounts you do not manage
Örnek kod
# 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"'"}'Ayrıntılar
- Barındırma
- Hazır hizmet (bulut)
- Kullanılabildiği yerler
- Tüm dünya
- Resmi SDK'lar
- Python, JavaScript/TypeScript, PHP, Java, Ruby
- MCP sunucusu
- Yok
- Entegrasyonlar
- Instagram, Facebook