Setup Guide
Complete these steps to set up Instagram integration for your ManyChat clone
Current Configuration Status
Instagram Configuration
Client ID
Missing
App URL
Set
Database Configuration
Supabase URL
Set
Service Key
Set
Setup Steps
1. Facebook Developer Account
Create and configure your Facebook app
required
- 1Go to https://developers.facebook.com/
 - 2Create a new app or use existing one
 - 3Choose 'Business' as the app type
 - 4Fill in app details (name, contact email, etc.)
 
2. Add Instagram Basic Display Product
Enable Instagram integration for your app
required
- 1In your Facebook App Dashboard, go to 'Products' > 'Add Product'
 - 2Find 'Instagram Basic Display' and click 'Set Up'
 - 3This allows basic profile and media access
 
3. Configure OAuth Redirect URI
Set up the redirect URL for authentication
required
- 1In your app, go to 'Instagram Basic Display' > 'Basic Display'
 - 2Add this URL to 'Valid OAuth Redirect URIs':
 - 3
https://papos.app/api/auth/instagram - 4Click 'Save Changes'
 
4. Get App Credentials
Copy your app credentials to environment variables
required
- 1Go to 'Settings' > 'Basic' in your Facebook app
 - 2Copy 'App ID' (use as INSTAGRAM_CLIENT_ID)
 - 3Copy 'App Secret' (use as INSTAGRAM_CLIENT_SECRET)
 - 4Add these to your Vercel environment variables
 
5. Add Instagram Testers (Development)
Add test users during development
development
- 1Go to 'Instagram Basic Display' > 'Basic Display'
 - 2Scroll to 'Instagram Testers'
 - 3Add Instagram usernames you want to test with
 - 4Users must accept the invite in their Instagram app settings
 
Environment Variables
Add these environment variables to your Vercel project
How to add environment variables in Vercel:
1. Go to your project dashboard on Vercel
2. Click "Settings" tab
3. Click "Environment Variables" in the sidebar
4. Add each variable below and redeploy your app
1. Go to your project dashboard on Vercel
2. Click "Settings" tab
3. Click "Environment Variables" in the sidebar
4. Add each variable below and redeploy your app
INSTAGRAM_CLIENT_IDRequired
Your Facebook App ID
Example: 1234567890123456INSTAGRAM_CLIENT_SECRETRequired
Your Facebook App Secret
Example: abcdef1234567890abcdef1234567890NEXT_PUBLIC_APP_URLRequired
Your deployed app URL
Example: https://your-app.vercel.appNEXT_PUBLIC_SUPABASE_URLRequired
Your Supabase project URL
Example: https://xxx.supabase.coNEXT_PUBLIC_SUPABASE_ANON_KEYRequired
Your Supabase anonymous key
Example: eyJhbG...SUPABASE_SERVICE_ROLE_KEYRequired
Your Supabase service role key
Example: eyJhbG...Important URLs to Copy
Use these URLs in your Facebook app configuration
OAuth Redirect URI
Add this to "Valid OAuth Redirect URIs" in Instagram Basic Display settings
https://papos.app/api/auth/instagramWebhook URL (Future Use)
You'll need this later for Instagram messaging webhooks
https://papos.app/api/webhooks/instagramNext Steps After Setup
- 1Complete all setup steps above
 - 2Add environment variables to Vercel and redeploy
 - 3Test the integration on the Integrations page
 - 4Add yourself as an Instagram Tester in Facebook app