Option A: Static Embeds (Current - Recommended for Now)
- β Simple and reliable
- β No API limits or authentication
- β Works immediately
- β Manual updates required
Option B: Instagram API (Advanced)
- β Real-time updates
- β Shows engagement metrics
- β Complex setup and authentication
- β Rate limits (200 calls/hour)
- β Requires business account
- Convert to Business Account: Switch your Instagram account to Business/Creator
- Create Facebook App: Go to developers.facebook.com
- Get Permissions: Apply for Instagram Basic Display or Instagram API
- Environment Setup: Add your tokens to
.env.local - Replace Component: Use
InstagramAPISectioninstead ofHobbiesSection
Create .env.local:
INSTAGRAM_ACCESS_TOKEN=your_long_lived_access_token
INSTAGRAM_USER_ID=your_instagram_business_account_idReplace in Index.tsx:
// Replace this:
import HobbiesSection from "@/components/HobbiesSection";
// With this:
import InstagramAPISection from "@/components/InstagramAPISection";
// And in the JSX:
<InstagramAPISection />For Production:
- Use server-side API routes to secure tokens
- Implement caching to reduce API calls
- Add error handling and fallbacks
- Monitor rate limits
For immediate use, stick with your current static embeds in HobbiesSection.tsx. They work perfectly and require no additional setup.
For dynamic updates later, follow the Instagram API guide when you're ready for the additional complexity.
- Test current setup: Your static embeds should work fine
- Plan API integration: When you want automatic updates
- Business account: Convert Instagram account if needed
- Facebook app: Create when ready for API integration
- Embeds not loading: Check Instagram's embed.js script
- API errors: Verify tokens and permissions
- Rate limits: Implement caching and reduce calls
- CORS issues: Use server-side API routes
Would you like to proceed with API integration or stick with static embeds for now?