Best Practices
- Use Long-Lived Tokens - They last 60 days instead of 1 hour
- Refresh Tokens Regularly - Refresh before expiration
- Handle Errors Gracefully - Always wrap API calls in try-catch
- Respect Rate Limits - Implement exponential backoff
- Use Webhooks - Set up webhooks for real-time updates
- Cache Data - Cache insights and media to reduce API calls
- Validate Media URLs - Ensure URLs are publicly accessible
- Test Thoroughly - Test in sandbox mode before production
Source captured: 2026-10-11