Integrations•4 min read
Meta (Facebook & Instagram) Integration Setup Guide
Connect your Facebook Pages, Facebook Messenger, Instagram Business accounts, Instagram Direct Messages, and Meta Ads to Valstorm using Facebook Login for Business (OAuth 2.0).
Before You Connect (Prerequisites)
Meta's API requires business assets rather than personal profiles:
- Facebook Page Admin Access: You must be an admin (Full Control) of the Facebook Page(s) you want to connect. Meta does not allow third-party apps to read or send messages on personal Facebook profiles.
- Instagram Professional Account (Optional — for Instagram Publishing & DMs):
- Your Instagram account must be set to a Professional (Business or Creator) account (in the Instagram app: Settings and privacy → Account type and tools → Switch to professional account).
- That Instagram account must be linked to your Facebook Page (in Meta Business Suite or Facebook Page Settings → Linked Accounts → Instagram).
- To enable Instagram DM syncing, turn on Allow access to messages in Instagram under Settings → Messages and story replies → Message controls → Connected tools.
- Meta Ads (Optional): If you plan to use Meta Ads campaigns, audiences, or insights, ensure your Facebook account has access to the target Ad Account and Pixel in Meta Business Portfolio.
Step-by-Step: Connect Meta in Valstorm
- Open Command Center → Integrations (or type
/connect metain Valstorm AI Chat). - Locate the Meta (Facebook & Instagram) card and click Connect Meta.
- Sign in to Facebook in the secure OAuth popup window.
- Choose the Facebook Page(s) and linked Instagram Business account(s) you want Valstorm to access.
- Review the requested permissions and click Continue / Save.
- The popup closes automatically and the Meta card updates to Connected, showing your active Facebook Page (and linked Instagram handle, if present).
What Happens Automatically on Connect
- Valstorm exchanges your OAuth authorization for a long-lived token and fetches non-expiring Page Access Tokens for each authorized Facebook Page.
- Linked Instagram Business accounts are automatically discovered from your authorized Facebook Pages.
- Your active Facebook Page is subscribed to real-time Meta messaging webhooks (
messages,messaging_postbacks,messaging_optins,messaging_referrals,message_reads,message_deliveries,message_reactions, andmessaging_seen).
Permissions Requested
Depending on the assets you authorize, Valstorm requests permissions across:
- Facebook Pages & Publishing:
pages_show_list,pages_read_engagement,pages_manage_metadata,pages_manage_posts,pages_read_user_content - Facebook Messenger:
pages_messaging - Instagram Business Publishing & DMs:
instagram_basic,instagram_content_publish,instagram_manage_insights,instagram_manage_comments,instagram_manage_messages - Meta Ads & Business Assets:
business_management,ads_read,ads_management,read_insights
Security, Token Lifetimes & Revoking Access
- Encrypted Storage: All OAuth and Page tokens are encrypted at rest inside your organization's isolated Valstorm credential store and never exposed in browser logs or API responses.
- Webhook Verification: Inbound Meta webhooks are verified using HMAC-SHA256 (
X-Hub-Signature-256) and Meta's webhook verify token before processing. - Token Renewal / Switching Pages: Page Access Tokens obtained via Facebook Login for Business do not expire under normal use, though password changes or security resets in Facebook can invalidate them. Click Re-authenticate on the Meta card at any time to refresh permissions or add newly created Pages.
- Revoking Access: To revoke Valstorm's access permanently, open Facebook → Settings & Privacy → Settings → Security and Login → Business Integrations, select Valstorm, and click Remove.
Troubleshooting
| Symptom | Likely Cause | How to Fix |
|---|---|---|
| No Facebook Pages appear after connecting | Your Facebook account does not have Full Control / Admin access on any Page, or no Pages were checked in the OAuth prompt. | Click Re-authenticate, confirm you are signed into the correct Facebook account, and check the Page(s) during the popup flow. |
| Facebook Page connects, but Instagram is missing | Instagram is still a Personal account or is not linked to the Facebook Page. | Switch Instagram to a Business or Creator account, link it under Facebook Page Settings → Linked Accounts → Instagram, then click Re-authenticate. |
| Instagram DMs do not sync | Connected tools toggle is disabled in Instagram. | In the Instagram app, enable Settings → Messages and story replies → Message controls → Connected tools → Allow access to messages. |
| Cannot reply to an older Messenger or Instagram DM | Meta enforces a 24-hour standard messaging window (extendable up to 7 days with the HUMAN_AGENT tag for live support replies). | Reply within Meta's active messaging window; messages outside the window are rejected by Meta's Send API. |
| External customers cannot receive DMs yet | The connected Meta App is still in Standard Access rather than Advanced Access. | Ensure Meta Business Verification and App Review approvals for pages_messaging / instagram_manage_messages are active for production customer traffic. |