Drawing 1 · Interactive
Step through an Embedded Signup session
- Business useron the partner's site
- Partner front endJS SDK
- Metapop-up + Graph API
- Partner serverholds the app secret
Step 10 of 10Response
Partner serverBusiness user
Number live: submit your first template
- Request — solid arrow — a call that expects an answer
- Response — dashed arrow — the answer coming back
- Event — dotted arrow — something happened and is pushed out
Step 10 of 10: Partner server to Business user — Number live: submit your first template
What is Embedded Signup?
Embedded Signup (ES) is the onboarding flow Meta hosts and a partner, either a Solution Partner or a Tech Provider, launches from its own website or dashboard. The business clicks a button such as "Connect WhatsApp", a Meta pop-up opens over the partner's page, and inside it the business signs in, picks or creates its business portfolio, creates or selects a WhatsApp Business Account (WABA), adds a display name and phone number, verifies that number by SMS or voice call, and approves the permissions the partner's app is asking for.
Everything sensitive happens inside Meta's window, so the partner never sees the business's Meta password. What the partner gets at the end is a browser event carrying the new waba_id and phone_number_id, and a one-time authorisation code. The partner's server exchanges that code for a Business Integration System User access token scoped to that client's assets. The login, configuration and token mechanics underneath are a separate product, Facebook Login for Business; Embedded Signup is the onboarding experience built on top of it.
The flow is configurable. Partners can pre-fill business details, offer a pre-verified phone number so the client skips the OTP step, attach a Multi-Partner Solution, or run the variant that onboards an existing WhatsApp Business app number for Coexistence. Hosted Embedded Signup is a simpler option in which Meta hosts the launch page, so the partner shares a link instead of embedding the SDK. Embedded Signup is one step of the wider WhatsApp API onboarding checklist, which also covers business verification, templates, payment and go-live.
Key takeaways
- Embedded Signup is a Meta-hosted pop-up that creates or connects a client's WABA and phone number and authorises the partner's app in one pass.
- The flow returns a short-lived code; your server must exchange it for a business token within about 30 seconds.
- Finishing the pop-up is not the end: subscribe your app to the WABA's webhooks and register the phone number before messages can flow.
- Since the new account model rollout began on 23 September 2026, each partner who onboards a client gets its own Messaging account, returned in the usual WABA ID field.
- The client keeps ownership of the assets and can remove the partner's access at any time from its business portfolio.
How does InfiQ help with Embedded Signup?
InfiQ uses Embedded Signup for onboarding: sign in with your Meta business account, verify the business, pick or add a number and submit your first templates. The WABA stays in your own Business Manager.
Embedded Signup on InfiQOperating sequence
How does Embedded Signup work?
Prepare the app and configuration
The partner needs a Meta app with the WhatsApp product, App Review approval for
whatsapp_business_managementandwhatsapp_business_messagingat Advanced access, and a Facebook Login for Business configuration whose ID (config_id) the button will launch.Launch the pop-up from your page
Load the Facebook JavaScript SDK and call
FB.loginwith yourconfig_id,response_type: 'code'andoverride_default_response_type: true. Listen formessageevents from facebook.com: aWA_EMBEDDED_SIGNUPevent reports FINISH with the IDs, or CANCEL with the step where the user stopped.Exchange the code on your server
Send the code to your backend and call
GET /oauth/access_tokenwith your app ID and app secret. Codes are short-lived (about 30 seconds), so exchange immediately and store the resulting business token encrypted, keyed to the client's WABA ID.Subscribe to the WABA's webhooks
Call
POST /{WABA_ID}/subscribed_appswith the client's business token. Without it your webhook endpoint receives nothing for this client: no inbound messages, no statuses.Register the number and sort out payment
Call
POST /{PHONE_NUMBER_ID}/registerwithmessaging_product: "whatsapp"and a 6-digitpin. A Solution Partner then shares its credit line; with a Tech Provider the client adds its own payment method in Meta Business Suite.
Implementation
Embedded Signup in code
// Listen for the session events Meta posts back from the pop-upwindow.addEventListener("message", (event) => {if (!event.origin.endsWith("facebook.com")) return;try {const data = JSON.parse(event.data);if (data.type !== "WA_EMBEDDED_SIGNUP") return;if (data.event === "FINISH") {const { phone_number_id, waba_id } = data.data;saveSession({ phone_number_id, waba_id });} else if (data.event === "CANCEL") {logDropOff(data.data.current_step); // where the user gave up}} catch { /* not a JSON message from the flow */ }});function launchWhatsAppSignup() {FB.login((response) => {if (response.authResponse?.code) {// Exchange immediately: the code expires in about 30 secondsfetch("/api/whatsapp/onboard", {method: "POST",headers: { "Content-Type": "application/json" },body: JSON.stringify({ code: response.authResponse.code }),});}}, {config_id: "{CONFIG_ID}",response_type: "code",override_default_response_type: true,extras: { setup: {} },});}
The session event gives you the IDs; the login callback gives you the code. You need both.
Example: A Pune coaching institute goes live before lunch
A coaching institute in Pune signs up on a messaging platform's website at 10:40. It clicks Connect WhatsApp, logs in with the founder's Facebook account, creates a new WABA under its existing business portfolio, enters a fresh mobile number reserved for admissions and types the six-digit SMS code. The pop-up closes with a FINISH event. Within seconds the platform's backend exchanges the code, subscribes to webhooks, registers the number and attaches a payment method, and at 11:15 the institute submits its first utility template for fee reminders. Nobody at the platform touched the account by hand.
Failure modes
Common mistakes with Embedded Signup
Treating FINISH as "done"
The pop-up closing only means assets exist. Until you subscribe to the WABA's webhooks and register the number, the client cannot send or receive. Run the post-signup calls automatically and show the client a checklist that turns green only when each call succeeds.
Letting the code expire
Queuing the code for a background job or waiting for a second user action loses it within seconds. Send it straight to an endpoint that exchanges it synchronously, and log the exchange result next to the session event.
Using a number still active on WhatsApp
A number in use on the consumer app or the Business app fails unless the client deletes that account first or you run the Coexistence variant on purpose. Ask which path the client wants before the pop-up opens.
Skipping App Review
If your app lacks Advanced access, the permissions do not appear in the flow and calls on client assets fail with error code 200. Pass App Review before inviting real clients.
Specifications
Embedded Signup: key facts and limits
- Hosted by
- Meta (pop-up over the partner's page)
- Launched with
- FB.login + a Facebook Login for Business config_id
- Returned to the browser
- waba_id, phone_number_id and a one-time code
- Code lifetime
- About 30 seconds
- Token you end up with
- Business Integration System User access token
- Permissions requested
- whatsapp_business_management, whatsapp_business_messaging
- Number verification
- SMS or voice OTP, skipped for pre-verified numbers
Design intent
Why does Embedded Signup matter?
Manual onboarding used to mean emails full of account IDs, screenshots of Business Manager and days of waiting while a provider created assets the client did not properly own. Embedded Signup turns that into a guided five-minute flow the client completes alone, leaves the WABA inside the client's own business portfolio, and hands the partner exactly the access it was granted. For a provider that onboards hundreds of businesses a month, it is the difference between a sales-assisted setup and self-serve signup, and for the business it means it can change or add partners later without losing its number.
Recommended practice
Best practices for Embedded Signup
- Log every CANCEL event's
current_step: it tells you exactly where clients abandon onboarding. - Pre-fill business name, website and timezone through the
extrassetup object to cut typing in the pop-up. - Offer pre-verified numbers to clients who do not have a spare SIM; it removes the OTP step entirely.
- Read back the granted assets with
GET /debug_tokenand itsgranular_scopesinstead of trusting front-end IDs alone.