Demo mode: changes are disabled.

Skip to content

Meta Channels

Last updated

Connect Deskply to Instagram, Facebook Messenger and WhatsApp: the Meta apps to create, their settings, and what Meta's review asks for.

How it works

You create the Meta apps once, as the owner. Each customer then connects their own Instagram account, Facebook Page or WhatsApp number from Platforms in the customer panel, by signing in with Meta.

Each platform has its own app ID and secret, entered under Settings → Integrations in the admin panel, which also shows the addresses to register. You can use one Meta app for all three, or separate apps.

Instagram and Facebook

  1. Create an app at developers.facebook.com

    Open your Meta apps, create one and add the Instagram and Messenger products to it. Meta's own guides: Instagram Platform and Messenger Platform.

  2. Enter the app ID and secret in the admin panel

    Open Settings → Integrations. In the Facebook and Instagram cards, paste each app ID and secret, choose a webhook verify token (any text without spaces), and save with your password.

  3. Register the addresses in the Meta app

    Each card lists the sign-in redirect, the webhook and the data deletion callback to copy into the Meta app (also in Addresses to register). For each webhook, enter the verify token you saved.

  4. Connect an account

    Sign in to the customer panel, open Platforms and choose Connect on Instagram or Facebook. What happens next is in When a customer connects.

The Integrations settings, with the addresses to register and the fields for the Facebook app

Settings → Integrations: the addresses to register in the Meta app, and the fields for its values.

When a customer connects

  • Each Connect link works once, for 30 minutes. The Platforms page renews its links every 20 minutes. A customer who sees “This connection link has expired or was already used” clicks Connect again. A link started from another account is refused, so a link someone sends you cannot connect your channel to their workspace.
  • It finishes in the customer panel. After the customer agrees on Meta's screen, Meta returns them to Platforms (FRONTEND_URL/platforms), which finishes the connection with their session. It must be the same signed-in account that clicked Connect; a customer who is signed out signs in first and the connection then finishes. WhatsApp finishes inside the web app too, through Embedded Signup.
  • Cancel changes nothing. A customer who cancels or refuses on Meta's screen comes back to Platforms with “The account wasn't connected. Nothing was changed.”
  • Plan limits. When the customer's plan allows no more channels, or not this type of channel, the connection stops with a message that says so.

Register FRONTEND_URL/platforms under Valid OAuth Redirect URIs in the Meta app, for Instagram and for Facebook Login. INSTAGRAM_REDIRECT_URI and FACEBOOK_REDIRECT_URI in the API override it; if you set them, they must still point at the /platforms page of the web app, and Meta must have the same address.

WhatsApp

Customers connect a WhatsApp Business number through Meta's Embedded Signup (part of the WhatsApp Business Platform), without leaving the panel. Its card under Settings → Integrations asks for two more settings than the other platforms.

  • Embedded Signup configuration ID: create a configuration under Facebook Login for Business in your Meta app and copy its ID.
  • Registration PIN: six digits of your choice. It becomes the two-step verification PIN of every number registered through your installation. Keep it safe: the same PIN is needed to register a number again.
  • Webhook fields: subscribe to messages and account_update.

Without the PIN, numbers receive nothing

A number that was connected while the PIN was empty is not registered with WhatsApp, and no message reaches it. Webhooks are also rejected while the app secret is empty.

The API renews WhatsApp tokens that are about to expire by itself, every night.

The WhatsApp part of the Integrations settings

Settings → Integrations: WhatsApp.

Meta's app review

A new Meta app works only for the people listed in its roles. Before your customers can connect their accounts, Meta has to verify your business and approve each permission the app asks for.

  • Verify your business in Meta Business settings (how to).
  • Submit each platform for App Review, with a screen recording of the connection and of a conversation.
  • Give Meta the addresses of your legal pages and your data deletion callbacks. The legal pages ship with the web app: /privacy-policy and /terms-condition on the web app's address. The data deletion callbacks are on the API: /api/v1/webhooks/instagram/data-deletion, /api/v1/webhooks/facebook/data-deletion and /api/v1/webhooks/whatsapp/data-deletion.

Plan for this early: the review can take days, and the channels stay closed to customers until it passes.