social-media-api-best-practices
Installation
SKILL.md
Social Media API Best Practices
Battle-tested patterns from scheduling 1M+ posts across 13 platforms.
1. Authentication Patterns
OAuth 2.0 Platforms
Instagram (Meta Graph API)
- Two-step token exchange: short-lived (1 hour) → long-lived (60 days)
- Use
auth_type: 'rerequest'to force permission re-prompts - Exchange endpoint:
ig_exchange_tokengrant type - Scopes:
instagram_business_basic,instagram_business_content_publish,instagram_business_manage_messages,instagram_business_manage_comments,instagram_business_manage_insights