- Set up required Instagram Business and Facebook accounts
- Create a Meta developer app with required permissions
- Configure OAuth authentication for your instagram integration in superglue
- Retrieve Instagram posts and metadata using superglue
Note: This guide uses Facebook’s Graph API instead of Instagram’s Basic Display API, as it provides more functionality for business accounts including insights, comments, and publishing capabilities. Using the Graph API unfortunately requires a LOT of setup. We have done our best to summarize this process here, but refer readers to Meta for Developers for more detailed information.
Prerequisites
- An Instagram account (will be converted to Business)
- A Facebook account to link with Instagram
- Access to Meta for Developers
- superglue installed and configured (see Quick Start or app.superglue.cloud)
Account Setup
1. Create an Instagram Business Account
Convert your Instagram account to a Business account:- Open Instagram (mobile app or web)
- Go to Settings → Account
- Select Switch to Professional Account
- Choose Business (not Creator)
- Complete the setup process
2. Link to a Facebook Page
Instagram Business accounts must be linked to a Facebook Page:- Create a Facebook Page if you don’t have one
- In Instagram settings, go to Business → Page
- Select Connect a Facebook Page
- Choose or create a page to link
3. Create a Meta Developer App
Set up your app in Meta’s developer portal:- Visit Meta for Developers
- Click My Apps → Create App
- Select Other as the use case
- Choose Business as the app type
- Fill in the app details and create
4. Configure App Products
Add required products to your app:- In your app dashboard, go to Add Product
- Add Facebook Login for Business
- Under Facebook Login for Business → Settings:
- Add
https://app.superglue.cloud/api/auth/callback
to Valid OAuth Redirect URIs
- Add
- In Settings → Basic:
- Add
app.superglue.cloud
to App Domains - Set App Mode to Live (requires adding a privacy policy URL for your app)
- Add
5. Register Test Users
For development, register your Instagram account as a test user:- Go to Roles → Test Users in your app dashboard
- Add your Instagram account email
- Accept the invitation in Instagram:
- Go to Instagram web → Settings → Apps and Websites
- Accept the test user invitation
Setting Up an Instagram integration with OAuth in superglue
Note: The Meta Graph API does not fully follow the OAuth 2.0 standards. It provides a long-lived access token without a refresh token that needs to be manually refreshed every 60 days. superglue will flag this, but any Meta integrations will need to be reauthenticated every 60 days.
Retrieving Instagram Posts
Once authenticated, you can fetch your Instagram business account data and all posts:Note: To access live public data from accounts not registered as test users in your app, your Meta developer app must go through the App Review process. This is required by Meta for production use. See Meta’s App Review documentation for detailed requirements and submission guidelines.
Troubleshooting
”No Instagram Business Account found”
- Verify your Instagram account is converted to Business (not Personal or Creator)
- Check that it’s properly linked to a Facebook Page
- Ensure the Facebook Page is accessible by your app
”Insufficient permissions”
- Confirm all required scopes were approved during OAuth
- Check that your app is in Live mode
- For test users, verify the invitation was accepted in Instagram
”Invalid OAuth token”
- Re-authenticate by clicking “Connect with OAuth” again
- Check that your app’s OAuth redirect URI matches exactly
- Verify App ID and App Secret are correct
App Review for Production
To access data from non-test users, submit your app for review:- Go to App Review → Permissions and Features
- Request the required permissions
- Provide use case descriptions and screencasts
- Wait for Meta’s approval
Next Steps
- Sign up for superglue to start building integrations
- Explore MCP (Model Context Protocol) for AI-powered workflow creation
- Check out the Google Ads OAuth guide for another complex OAuth integration example
- Build workflows to sync Instagram data with your data warehouse or analytics platform