Partner-Hosted Embedded Signup
This page describes how partners can host Embedded Signup
For advanced personalization, approved Meta Tech Providers can host a custom Embedded Signup flow.
Requirements
Tech Provider registration and approved Solution
Enabling this option requires status as a Meta-approved Tech Provider with a live solution integrated with 360dialog. The solution must be in Meta's ACTIVE status. More details.
Technical Capacity
Hosting and managing an independent Embedded Signup script requires technical implementation knowledge. Technical support from 360dialog is not available for troubleshooting custom Embedded Signup scripts.
Request Advanced Access for public_profile permission
An additional permission is required for the onboarding process to function correctly. In the Meta for Developers App dashboard > navigate to your App Review > Permissions > Find the ‘public_profile’ permission and request advanced access.

Ensure advanced access is granted before configuring the ES.

Set Partner Hub Webhook URL and listen to Webhook Events
Build Self-Hosted Embedded Signup
Check the signup flow for Cloud API. Note that if you have information about your customer's business, you can inject this data, which can significantly reduce the number of screens that your customers have to interact with. We recommend using Embedded Signup version 4. In this case you can enable the Marketing Messages API (MM API) for the client during the onboarding process. This allows your clients to skip an additional step of enabling the MM API after they are onboarded. Here is how to enable Embedded Signup version 4.
Embedded Signup versions
What happens on 15 October 2026
Standard flows upgrade on their own. If your configuration does not use one of the feature types below, your flow keeps working and starts behaving like v4. Nothing to deploy.
Three feature types are not upgraded automatically:
only_waba_sharing,marketing_messages_liteandcoex. On v2 and v3 they stop working on that date and the flow falls back to the standard Embedded Signup (a regular new-number signup) until you move to v4. Clients would then not get the WABA-sharing, MM API or Coexistence experience you configured.The phone-number-first screen order that v4 introduced is being applied by Meta to v2, v3 and v4. Clients see the number step first, which is what makes pre-verified phone numbers effective. No action on your side.
Move to v4
In the Meta App Dashboard, create a new Facebook Login for Business configuration with Embedded Signup and the products you need: WhatsApp Cloud API, Marketing Messages API, Ads that click to WhatsApp, Conversions API.
Launch the flow with that configuration ID. In v4 the version is not a parameter any more: remove
versionandsessionInfoVersionfrom theextrasobject.For Coexistence, use the
whatsapp_business_app_onboardingfeature type, which v4 supports. For WABA sharing and MM API, select the products in the login configuration instead of the retired feature types.Test the full flow with a non-production number, including the redirect to 360dialog and the webhook events, before 15 October.
Version comparison
Status
Retired 15 Oct 2026
Retired 15 Oct 2026
Current
Version selection
extras.version
extras.version
Login for Business configuration, extras left empty
Finish without a verified number
No
Yes
Yes
Products enabled at signup (MM API, CTWA, Conversions API)
No
No
Yes
only_waba_sharing, marketing_messages_lite, coex feature types
Supported
Partly
Replaced by products and whatsapp_business_app_onboarding
Session info callback
Needs sessionInfoVersion
Always
Always
Full details on Meta's Embedded Signup versions page.
New WhatsApp account model
Meta's new WhatsApp account model is live for all accounts since mid-October 2026. The phone number lives in a WhatsApp account (WAAC), and each provider has its own Messaging account (formerly WhatsApp Business Account, WABA) for templates, billing and webhooks. An existing WABA became the Messaging account, with the same ID. What it means for the flow:
All Embedded Signup versions return the Messaging account ID in the WABA ID field. Pass it to the Partner API as
waba_external_id, as before. Embedded Signup v5 also returns the Messaging account IDs in amessaging_account_idsfield. Make sure to submit the Messaging account ID, not the WhatsApp account ID.A business can add 360dialog to a phone number that is already in use with another provider or a direct integration: it selects the existing number, the Business Portfolio and WhatsApp account fields are greyed out (pre-selected by Meta) and a new Messaging account is created for the solution. The previous provider is not removed. No 2FA change, number deletion or re-onboarding is needed.
After such an onboarding the business must set conversation routing to 360dialog in Meta Business Suite. Otherwise the channel is Ready but no incoming messages or webhooks reach 360dialog and free-form replies fail with error 131070. Build this into post-onboarding instructions. See Migrate a number to 360Dialog.
Templates are not carried over to the new Messaging account. 360dialog Support can duplicate them from the source Messaging account on request.
Connect Self-Hosted Embedded Signup to 360dialog
Step 1: Create or retrieve a Client Account
In order to later submit the number, either retrieve an existing client_id or create a new client instance through our Partner API using the endpoint below. Make sure to store the Client ID of each client within database, since it will be required afterwards. Alternatively, it can also be retrieved with this endpoint.
Create client account
This endpoint must be used to create the client account.
Step 2: Surface Embedded Signup to client and fetch information
Embedded Signup is a Meta-hosted popup that you launch from your own website or portal with the Facebook JavaScript SDK. In the popup, the client logs in with their Meta credentials, accepts the WhatsApp terms, selects or creates a business portfolio and WhatsApp account, adds and verifies a phone number and sets a display name.
When the client finishes, Meta returns two things to your page:
a session info event with the IDs of the client's assets (WABA ID, phone number ID, business portfolio ID)
an exchangeable token code that you can swap for the client's business token
Complete the steps below to launch the flow, capture this data and confirm the shared WABA ID. You submit the IDs to 360dialog in Step 3.
2.1 Configure your Meta app
In the App Dashboard, open your app and go to Facebook Login for Business > Settings > Client OAuth settings.
Set these toggles to Yes: Client OAuth login, Web OAuth login, Enforce HTTPS, Embedded Browser OAuth Login, Use Strict Mode for redirect URIs, and Login with the JavaScript SDK.
Add every domain that will host the flow, including development and test domains, to Allowed domains and Valid OAuth redirect URIs. Only HTTPS domains are supported.
Reference: Meta: Add allowed domains
2.2 Create a Facebook Login for Business configuration
The configuration defines which permissions and assets the flow requests from the client.
Go to Facebook Login for Business > Configurations.
Click Create from template and select WhatsApp Embedded Signup Configuration With 60 Expiration Token. To build a custom configuration instead, click Create configuration and select the WhatsApp Embedded Signup login variation.
Select the products to onboard, for example WhatsApp Cloud API and Marketing Messages API for WhatsApp.
Select only the assets and permissions you need. Extra assets, such as Catalogs, add screens to the flow and increase drop-off.
Save the configuration and copy the configuration ID.
Reference: Meta: Create a Facebook Login for Business configuration
2.3 Add Embedded Signup to your website
Add the code below to the page where clients start the onboarding. Replace the placeholders:
<APP_ID>
Your Meta App ID, shown at the top of the App Dashboard.
<GRAPH_API_VERSION>
The latest Graph API version, for example v25.0.
<CONFIGURATION_ID>
The configuration ID from 2.2.
To shorten the flow, pass business data you already know about the client in extras.setup. See Meta: Pre-filled data.
Reference: Meta: Add Embedded Signup to your website
2.4 Capture the session info
When the flow ends, Meta sends a message event of type WA_EMBEDDED_SIGNUP to your page. Send the payload to your server and store it with the client_id from Step 1.
The event field tells you how the flow ended:
event
Meaning
FINISH
The client completed the flow with a phone number.
FINISH_ONLY_WABA
The client completed the flow without adding a phone number.
FINISH_WHATSAPP_BUSINESS_APP_ONBOARDING
The client onboarded a number in use with the WhatsApp Business App (Coexistence).
CANCEL
The client left the flow early, or reported an error.
Closing the popup on the final screen counts as a successful completion, not as CANCEL.
Completed flow
waba_id
waba_external_id
phone_number_id
channel_external_id
business_id
Store for reference
The payload can also contain ad_account_ids, page_ids, dataset_ids, catalog_ids or instagram_account_ids if the client selected those assets, and waba_ids for multi-WABA flows.
Abandoned flow
current_step shows the screen where the client left the flow. Use it to follow up with the client. See Meta: Abandoned flow screens.
Error reported by the client
Include error_code, session_id and timestamp when you contact support about a failed signup.
Reference: Meta: Session logging message event listener
2.5 Exchange the token code for a business token
The FB.login callback returns an exchangeable code in response.authResponse.code. The code expires after 30 seconds, so send it to your server and exchange it right away.
Request:
<APP_ID>
Your Meta App ID.
<APP_SECRET>
Your App Secret, from App Dashboard > App settings > Basic.
<CODE>
The code from the FB.login callback.
Response:
The response contains the client's business token. Store it securely. You need it in 2.6 and for any Graph API calls you make for this client.
Reference: Meta: Response callback, Meta: Exchange the token code for a business token
2.6 Confirm the shared WABA ID
Use the business token to confirm which WABA the client shared with your app. This is a reliable check if the session info event was not received, for example because the client's browser blocked it.
Call the Debug Token endpoint. Pass the business token as input_token and authenticate with your System User access token.
Request:
Response (shortened):
In granular_scopes, find the whatsapp_business_management scope. The first ID in its target_ids array is the most recently shared WABA. Use it as waba_external_id in Step 3.
As a fallback, list all WABAs shared with your business portfolio:
To get the phone number IDs in the WABA, call:
Reference: Meta: Get shared WABA ID with access token, Meta: Get list of shared WABAs
2.7 Steps handled by 360dialog
Meta's onboarding guide lists further API calls after the token exchange. 360dialog completes these when you submit the number in Step 3:
Phone number registration. We recommend leaving registration to 360dialog. If you have already registered the number, 360dialog can still complete the onboarding.
Webhook subscription on the client's WABA.
Credit line sharing with the client.
You now have the waba_id and phone_number_id. Continue with Step 3 to connect them to the client account.
Step 3: Connect Client account to the registered Phone Number
Use the endpoint below to submit the phone number/channel to 360Dialog records. If the number was successfully onboarded via self-hosted Embedded Signup and the attached client_id matches the user data in 360dialog records, the onboarding flow ends by redirecting the Client to the Partner Redirect URL set.
Submit channel/number created via self-hosted Embedded Signup
Please use this endpoint.
Step 4: Create API key to start messaging
When the number is fully live, the Channel Live Webhook Event will be sent.
You should be able to generate an API Key and connect it to your integration to start messaging with this phone number by default.
See Partner Permissions for details.
Last updated
Was this helpful?