Settings & Facebook connection

← Inbox

1. Connect with Facebook

Set META_APP_ID and META_APP_SECRET in .env.local and restart the server to enable this.

Requested permissions:

Connected Facebook Pages & Instagram accounts

Nothing connected yet — the app is in Demo Mode.

Quick connect: paste an access token

Paste only the token — the Instagram account is auto-discovered (Unified Login via debug_token, or /me/accounts). IDs are optional overrides. Stored only on this machine in data/db.json and never sent back to the browser.

Odoo CRM Bridge

Create an API key in Odoo: Profile → My Profile → Account Security → New API Key. Pushed DMs are logged as internal notes on the lead, so nobody is ever emailed.

2. URLs for the Meta Developer Portal

OAuth Redirect URI (Facebook Login → Valid OAuth Redirect URIs)
Webhook Callback URL (Webhooks → Instagram)

Meta requires public HTTPS URLs — use a tunnel (e.g. Cloudflare Tunnel or ngrok) and set APP_BASE_URL to it.

3. Environment readiness

Setup guide

  1. Make sure your Instagram account is Professional and linked to your Facebook Page (Page settings → Linked accounts).
  2. At developers.facebook.com create an app (Business type) and add Facebook Login for Business and the Instagram messaging product.
  3. Copy the App ID and App Secret into .env.local, along with a META_WEBHOOK_VERIFY_TOKEN you choose and your public APP_BASE_URL. Restart the app.
  4. Add the OAuth Redirect URI above to Facebook Login settings.
  5. In Webhooks, subscribe the Instagram object (messages field) using the Callback URL and your verify token.
  6. Unified Login (Instagram-only) tokens work too: the authorized Instagram account is found automatically and no Facebook Page is required.
  7. Click Connect with Facebook, approve the permissions, then choose the active account. Use Sync in the inbox to pull recent DMs.
  8. Note: until the app passes Meta App Review, only admins/developers/testers of the app can use these permissions.

Recent webhook events

No events received yet.