Instagram Setup
Set up Instagram Business API integration for publishing content, managing comments, and viewing insights through Fp Switchboard.
Prerequisites
Section titled “Prerequisites”- Instagram Business or Creator account
- Facebook Page connected to your Instagram account
- Access to Meta for Developers
Setup Steps
Section titled “Setup Steps”-
Create a Meta App
Go to developers.facebook.com and create a new app. Select “Business” type.
-
Add Instagram Graph API
In your app dashboard, click “Add Product” and select “Instagram Graph API”.
-
Add Redirect URI
Under Facebook Login > Settings, add:
https://api.switchboard.fpdigital.ai/oauth/instagram/callback -
Request Permissions
Add the required permissions:
instagram_basicinstagram_content_publishpages_show_listpages_read_engagement
-
Copy Credentials
From Settings > Basic, copy the App ID and App Secret.
Environment Variables
Section titled “Environment Variables”npx wrangler secret put INSTAGRAM_CLIENT_IDnpx wrangler secret put INSTAGRAM_CLIENT_SECRETRedirect URI
Section titled “Redirect URI”https://api.switchboard.fpdigital.ai/oauth/instagram/callbackCommon Issues
Section titled “Common Issues”- No Instagram account found: Ensure your Instagram account is converted to Business/Creator and linked to a Facebook Page.
- Permission denied: Instagram permissions require Meta app review for production use. Development mode works with test users only.
- Media upload limits: Instagram has daily limits on content publishing. Check Instagram’s current rate limits.
- Image requirements: Photos must be JPEG format and meet Instagram’s minimum resolution requirements.
Testing
Section titled “Testing”- Connect from the Switchboard Dashboard
- Authorize with your Facebook account (which connects to Instagram)
- Click Test Connection to verify
- Try: “Show my recent Instagram posts”