
FB.login function, which gets called when a business customer launches Embedded Signup, accepts an object as an argument. Use this object’s extras.setup property to inject data:// Launch method and callback registration
const launchWhatsAppSignup = () => {
FB.login(fbLoginCallback, {
config_id: '<CONFIGURATION_ID>', // your configuration ID goes here
response_type: 'code',
override_default_response_type: true,
extras: {
setup: {
business: {
// Business portfolio data goes here
},
preVerifiedPhone: {
// Pre-verified phone number IDs go here
},
phone: {
// Phone number profile data goes here
},
whatsAppBusinessAccount: {
// WABA IDs go here
}
},
featureType: '',
sessionInfoVersion: '3',
}
});
}


setup: { business: { id: <BUSINESS_PORTFOLIO_ID>, name: '<BUSINESS_PORTFOLIO_NAME>', email: '<BUSINESS_PORTFOLIO_EMAIL_ADDRESS>', website: '<BUSINESS_PORTFOLIO_WEBSITE>', address: { streetAddress1: '<BUSINESS_PORTFOLIO_STREET_ADDRESS_LINE_1>', streetAddress2: '<BUSINESS_PORTFOLIO_STREET_ADDRESS_LINE_2>', city: '<BUSINESS_PORTFOLIO_CITY>', state: '<BUSINESS_PORTFOLIO_STATE>', zipPostal: '<BUSINESS_PORTFOLIO_ZIP_CODE>', country: '<BUSINESS_PORTFOLIO_COUNTRY>' }, phone: { code: <BUSINESS_PORTFOLIO_COUNTRY_CALLING_CODE>, number: '<BUSINESS_PORTFOLIO_PHONE_NUMBER>' }, timezone: '<BUSINESS_PORTFOLIO_TIME_ZONE>' } }
| Placeholder | Description | Example value |
|---|---|---|
<BUSINESS_PORTFOLIO_ID>Integer or null | Required if using an existing business portfolio, otherwise set to null or omit to create a new portfolio. Set to the business customer’s existing business portfolio ID if you want to pre-fill the screen with data already set on the business portfolio, or if you want to associate a pre-verified phone number with this portfolio. If set to a portfolio ID, we will check if the business customer owns the portfolio. If they own it, we will inject its existing data into the flow and ignore all other business object properties. If they do not own it, we will inject business.name, business.email, business.website, and address.country values, if they are all set. If any are not set, the flow will display the default business portfolio screen instead.Set to null (or omit the id property entirely) if you want to create a new business portfolio based on injected business.name, business.email, business.website, and address.country values. | 2729063490586005 |
<BUSINESS_PORTFOLIO_NAME>String | Required if creating a new business portfolio. Business portfolio name. If this name matches the name of an existing business portfolio owned by the business customer, the existing portfolio will be used instead (it will be treated as if you assigned the existing portfolio’s ID to the id property).This name will also be used as the WhatsApp Business Account name, which is only visible in the WhatsApp Manager. Maximum 100 characters. | Wind & Wool |
<BUSINESS_PORTFOLIO_EMAIL_ADDRESS>String | Required if creating a new business portfolio. The business’s email address. This information will appear in the Meta Business Suite > Business portfolio > Settings > Business info panel. | support@windandwool.com |
<BUSINESS_PORTFOLIO_COUNTRY_CALLING_CODE>Integer | Required if injecting a business phone number. Business phone number country calling code. | 1 |
<BUSINESS_PORTFOLIO_PHONE_NUMBER>String | Required if injecting a business phone number. Business phone number, without country calling code. | 6505559999 |
<BUSINESS_PORTFOLIO_WEBSITE>String | Required if creating a new business portfolio. The business’s website URL. This information will appear in the Meta Business Suite > Business portfolio > Settings > Business info panel. | https://windandwool.com/ |
<BUSINESS_PORTFOLIO_STREET_ADDRESS_LINE_1>String | The business’s street address, line 1. This information will appear in the Meta Business Suite > Business portfolio > Settings > Business info panel. | 1 Hacker Way |
<BUSINESS_PORTFOLIO_STREET_ADDRESS_LINE_2>String | The business’s street address, line 2. This information will appear in the Meta Business Suite > Business portfolio > Settings > Business info panel. | Suite 1 |
<BUSINESS_PORTFOLIO_CITY>String | The business’s city address. This information will appear in the Meta Business Suite > Business portfolio > Settings > Business info panel. | Menlo Park |
<BUSINESS_PORTFOLIO_STATE>String | The business’s state address. This information will appear in the Meta Business Suite > Business portfolio > Settings > Business info panel. | California |
<BUSINESS_PORTFOLIO_ZIP_CODE>String | The business’s zip code address. This information will appear in the Meta Business Suite > Business portfolio > Settings > Business info panel. | 94025 |
<BUSINESS_PORTFOLIO_COUNTRY>String | Required if creating a new business portfolio. Business address ISO 3166-1 alpha-2 country code. | US |
<BUSINESS_PORTFOLIO_TIME_ZONE>String | The business’s time zone in
UTC offset format. | UTC-07:00 |
setup: {
business: {
name: 'Wind & Wool',
email: 'support@windandwool.com',
website: 'https://windandwool.com/',
address: {
streetAddress1: '1 Hacker Way',
streetAddress2: 'Suite 1',
city: 'Menlo Park',
state: 'California',
zipPostal: '94025',
country: 'US'
},
phone: {
code: 1,
number: '6505559999'
},
timezone: 'UTC-07:00'
}
}


setup: { preVerifiedPhone: { ids: [ '<PRE-VERIFIED_PHONE_NUMBER_ID>' ] } }
<PRE-VERIFIED_PHONE_NUMBER_ID> with a unique, pre-verified business phone number ID.ids value accepts an array of strings, if you include more than one pre-verified business phone number ID, only the first ID in the array will appear in the WABA selection screen.setup: {
preVerifiedPhone: {
ids: [
'106540352242922'
]
}
}

setup: { phone: { displayName: '<PHONE_PROFILE_DISPLAY_NAME>', category: '<PHONE_PROFILE_DISPLAY_CATEGORY>', description: '<PHONE_PROFILE_DISPLAY_DESCRIPTION>' } }
| Placeholder | Description | Example value |
|---|---|---|
<PHONE_PROFILE_DISPLAY_NAME>String | Required. Business profile display name, visible to WhatsApp users in the WhatsApp client (see screenshot above). | Wind & Wool |
<PHONE_PROFILE_DISPLAY_CATEGORY>String | Required. Business profile display category. See the vertical field in the GET /<WHATSAPP_BUSINESS_PHONE_ID>/whatsapp_business_profile endpoint reference for a list of possible values. | APPAREL |
<PHONE_PROFILE_DISPLAY_DESCRIPTION>String | Required. Business phone number profile description.
| Bespoke artisan apparel and lifestyle goods from upcoming designers. |
setup: {
phone: {
displayName: 'Wind & Wool',
category: 'APPAREL',
description: 'Bespoke artisan apparel and lifestyle goods from upcoming designers.'
}
}
setup: { whatsAppBusinessAccount: { ids: '<WABA_ID>' } }
<WABA_ID> with a unique WABA ID.setup: {
preVerifiedPhone: {
ids: [
'106540352242922'
]
},
whatsAppBusinessAccount: {
id: [
'432428883295692'
]
}
}
// Launch method and callback registration
const launchWhatsAppSignup = () => {
FB.login(fbLoginCallback, {
config_id: '31602279155865',
response_type: 'code',
override_default_response_type: true,
extras: {
setup: {
business: {
name: 'Wind & Wool',
email: 'support@windandwool.com',
website: 'https://windandwool.com/',
address: {
streetAddress1: '1 Hacker Way',
streetAddress2: 'Suite 1',
city: 'Menlo Park',
state: 'California',
zipPostal: '94025',
country: 'US'
},
phone: {
code: 1,
number: '6505559999'
},
timezone: 'UTC-07:00'
},
preVerifiedPhone: {
ids: [
'106540352242922'
]
},
phone: {
displayName: 'Wind & Wool',
category: 'APPAREL',
description: 'Bespoke artisan apparel and lifestyle goods from upcoming designers.'
}
},
featureType: '',
sessionInfoVersion: '3',
}
});
}
// Launch method and callback registration
const launchWhatsAppSignup = () => {
FB.login(fbLoginCallback, {
config_id: '31602279155865',
response_type: 'code',
override_default_response_type: true,
extras: {
setup: {
business: {
id: '2729063490586005'
},
preVerifiedPhone: {
ids: [
'106540352242922'
]
},
phone: {
displayName: 'Wind & Wool',
category: 'APPAREL',
description: 'Bespoke artisan apparel and lifestyle goods from upcoming designers.'
}
},
featureType: '',
sessionInfoVersion: '3',
}
});
}