Comments detected
—
↑ across all accounts
DMs sent
—
follow-ask + link
New followers
—
via automation
Links delivered
—
direct + follow-back
⚡ Live activity
Live
📱 Active accounts
🔗 Webhook health
Connected accounts
Manage multiple Instagram Business accounts
🔐 Token management
ℹ️ Long-lived tokens expire after ~60 days. AutoDM refreshes them automatically 7 days before expiry. Tokens are stored encrypted with AES-256-GCM.
Automation rules
Comment triggers → DM sequences
Message log
Recent messages
Webhook configuration
Configure Meta webhooks for real-time events
🔗 Callback URL
Paste into Meta App Dashboard → Webhooks
https://your-domain.com/webhook/instagram
autodm_verify_xK9mP2qR7nL4
📡 Subscribed fields
comments
Subscribed
follows
Subscribed
messages
Subscribed
📋 Recent webhook events
Installation & Setup Guide
Complete step-by-step for Meta Tech Partners using Instagram Graph API
⚠️
Requires a Meta Tech Partner account with approved permissions: instagram_manage_comments, pages_messaging, instagram_basic.
✓
Step 1 — Create & configure your Meta App
▾
Go to developers.facebook.com → Create App → Business → add the Instagram Graph API product.
- App type: Business
- Add product: Instagram Graph API
- Permissions to request: instagram_basic, instagram_manage_comments, instagram_manage_messages, pages_messaging, pages_show_list
- Copy App ID and App Secret into your .env file
META_APP_ID=your_app_id_here
META_APP_SECRET=your_app_secret_here
META_VERIFY_TOKEN=autodm_verify_xK9mP2qR7nL4
✓
Step 2 — Get a long-lived access token
▾
Use the AutoDM OAuth flow to connect accounts — click Connect Account in the sidebar. Under the hood it calls:
GET https://graph.facebook.com/v20.0/oauth/access_token?
grant_type=fb_exchange_token
&client_id={APP_ID}
&client_secret={APP_SECRET}
&fb_exchange_token={SHORT_LIVED_TOKEN}
# Returns a 60-day token — AutoDM stores it encrypted and auto-refreshes
3
Step 3 — Register the webhook in Meta App Dashboard
▾
- Go to developers.facebook.com → Your App → Webhooks → Instagram
- Callback URL: https://your-domain.com/webhook/instagram
- Verify Token: paste the value from your .env META_VERIFY_TOKEN
- Subscribe fields: comments, follows, messages
- Click Verify and Save
ℹ️ Your server must be running and reachable over HTTPS before clicking Verify.
4
Step 4 — Deploy backend to Hostinger
▾
See the full Hostinger deployment guide included with your download. Quick summary:
- Upload backend via Git or File Manager
- Set all .env variables in Hostinger Node.js panel
- Run npm install && npm start
- Point your domain to the Node.js app port
- Upload this HTML file to Hostinger public_html (static hosting)
- Update API_BASE in this file to your backend URL
5
Step 5 — Go-live checklist
▾
- NODE_ENV=production in Hostinger env vars
- Meta App set to Live mode (not Development)
- All permissions approved by Meta App Review
- SSL certificate active on your domain
- MongoDB Atlas cluster running (not localhost)
- Redis Cloud instance URL in REDIS_URL
- Token refresh cron job active (built-in, runs every 6h)
# Test webhook manually:
curl -X GET "https://your-domain.com/webhook/instagram?\
hub.mode=subscribe&hub.verify_token=autodm_verify_xK9mP2qR7nL4\
&hub.challenge=CHALLENGE_CODE"
# Should return: CHALLENGE_CODE
Settings
API credentials
ℹ️ These are set in your server's .env file. Shown here for reference only — changes require a server restart.
Your profile
Change password