logo

Create Business App (WhatsApp Cloud API) - Meta for Developers

Learn how to Create Business App in Facebook, Add Phone Number and Integrate WhatsApp Cloud API with SME Bot.

1
2

In the Facebook Developers Account, Click "Create App"

In the Facebook Developers Account, Click "Create App"
3

Provide your App Name and the App Contact Email. Click "Next"

Provide your App Name and the App Contact Email. Click "Next"
4

Select "Other" or the option where it include WhatsApp.

Select "Other" or the option where it include WhatsApp.
5

Click "Next"

Click "Next"
6

Click the dropdown under "Business Portfolio" to associate your app with the intended business portfolio.

Click the dropdown under "Business Portfolio" to associate your app with the intended business portfolio.
7

Click "Create app"

Click "Create app"
8

Re-enter your password and click "Submit"

Re-enter your password and click "Submit"
9

Click "Set Up" under WhatsApp.

Click "Set Up" under WhatsApp.
10

Under WhatsApp, click "Configuration" .

Under WhatsApp, click "Configuration" .
11

Enter the Callback URL as https://app.smebot.ai/webhooks/whatsapp.php and set the Verify Token as whatsapp

Enter the **Callback URL** as https://app.smebot.ai/webhooks/whatsapp.php and set the **Verify Token** as whatsapp
12

Click "Verify and save"

Click "Verify and save"
13

Subscribe to all Webhook Fields. Some fields may not be available for subscription.

Subscribe to all Webhook Fields. Some fields may not be available for subscription.
14

You've successfully subscribed to the Webhook Fields. ✅

You've successfully subscribed to the Webhook Fields. ✅
15

Under WhatsAp, click "API Setup" .

Under WhatsAp, click "API Setup" .
16

If you're using a test phone number, you must verify your personal WhatsApp number. Click "Select a recipient phone number", then click "Manage phone number list" to proceed.

If you're using a test phone number, you must verify your personal WhatsApp number. Click "Select a recipient phone number", then click "Manage phone number list" to proceed.
17

Enter your country code and rovide the phone number for verification. Click "Next".

Enter your country code and rovide the phone number for verification. Click "Next".
18

A verification code will be sent to the number you have provided. Enter the 5-digit code, click "Next" to complete the verification.

A verification code will be sent to the number you have provided. Enter the 5-digit code, click "Next" to complete the verification.
19

To start the process of creating your WhatsApp SME Bot, Navigate to your SME Bot, then click "Channels".

To start the process of creating your WhatsApp SME Bot, Navigate to your [SME Bot](https://app.smebot.ai/), then click "Channels".
20

Click "WhatsApp"

Click "WhatsApp"
21

Click "Connect"

Click "Connect"
22

Select both "Connect an existing WhatsApp Business Account" and "Manual connect using System User Access token".

Select both "Connect an existing WhatsApp Business Account" and "Manual connect using System User Access token".
23

You will need to provide your WhatsApp Business Account (WABA) ID and Access Token (Permanent).

You will need to provide your WhatsApp Business Account (WABA) ID and Access Token (Permanent).
24

To get your WhatsApp Business Account (WABA) ID, go to Facebook Developers, copy the WABA ID, and paste it into your SME Bot.

To get your WhatsApp Business Account (WABA) ID, go to [Facebook Developers](https://developers.facebook.com/apps), copy the WABA ID, and paste it into your SME Bot.
25

At Facebook Developers, click "Configuration" and scroll down to "Learn how to create a permanent token".

At [Facebook Developers]( https://developers.facebook.com/apps), click "Configuration" and scroll down to "[Learn how to create a permanent token](https://developers.facebook.com/docs/whatsapp/business-management-api/get-started#1--acquire-an-access-token-using-a-system-user-or-facebook-login)".
26

In the Facebook Business Management API article, it outlines the requirements to generate your Access Token.

In the Facebook Business Management API article, it outlines the requirements to generate your Access Token.
27

Scroll to "Generating System User Access Tokens" to understand the steps for obtaining your Access Token. The following steps will guide you in creating a System User in Meta Business Portfolio to generate an Access Token that never expires.

Scroll to "Generating System User Access Tokens" to understand the steps for obtaining your Access Token. The following steps will guide you in creating a **System User** in Meta Business Portfolio to generate an **Access Token** that never expires.
28

Navigate to Meta Business Portfolio, select or create the business portfolio you want to associate with WhatsApp. Once done, go to "Settings," then under "Users," click "System Users".

Navigate to [Meta Business Portfolio](https://business.facebook.com/select/), select or create the business portfolio you want to associate with WhatsApp. Once done, go to "Settings," then under "Users," click "System Users".
29

Click "Add," provide the System User Name, and select the System User Role as "Admin." Then, click "Create System User" to complete the process.

Click "Add," provide the System User Name, and select the System User Role as "Admin." Then, click "Create System User" to complete the process.
30

Click the three dots (...) and select "Assign Assets".

Click the three dots (...) and select "Assign Assets".
31

Click "Apps," select "Assets," and grant Full Control. Then, click "Assign Assets" to complete the selection.

Click "Apps," select "Assets," and grant Full Control. Then, click "Assign Assets" to complete the selection.
32

Click "Generate Token"

Click "Generate Token"
33

To generate the Access Token, select the app you created earlier, then click "Next".

To generate the Access Token, select the app you created earlier, then click "Next".
34

Select Token Expiration as "Never," then click "Next."

Select Token Expiration as "Never," then click "Next."
35

Assign and grant these permissions: "business_management", "whatsapp_business_messaging", and "whatsapp_business_management". Then click "Generate token".

Assign and grant these permissions: "business_management", "whatsapp_business_messaging", and "whatsapp_business_management". Then click "Generate token".
36

Copy the generated Access Token Code and paste it into your SME Bot.

Copy the generated Access Token Code and paste it into your SME Bot.
37

Once you have entered both the WABA ID and Access Token in your SME Bot account, click "Continue".

Once you have entered both the WABA ID and Access Token in your SME Bot account, click "Continue".
38

At the Select Phone Number, click "Connect".

At the Select Phone Number, click "Connect".
39

You've successfully connected your SME Bot to the Facebook Test Number. Click on the WhatsApp number to generate a link or QR Code for testing.

You've successfully connected your SME Bot to the Facebook Test Number. Click on the WhatsApp number to generate a link or QR Code for testing.
40

A pop-up will appear, allowing you to copy the link or scan the QR Code to initiate a chat with the WhatsApp number.

A pop-up will appear, allowing you to copy the link or scan the QR Code to initiate a chat with the WhatsApp number.
41

Click "Conversations" to view the chat.

Click "Conversations" to view the chat.
42

Successfully received a chat message from user. Please note that no flow or AI has been created or connected yet, so the AI is not replying in this guide.

Successfully received a chat message from user. Please note that no flow or AI has been created or connected yet, so the AI is not replying in this guide.
43

Next, switch to a personal number. Go to Facebook Developers. Under WhatsApp API Setup, click "Add phone number" and a pop-up will appear, allowing you to create your WhatsApp Business Profile.

Next, switch to a personal number. Go to [Facebook Developers]( https://developers.facebook.com/apps). Under WhatsApp API Setup, click "Add phone number" and a pop-up will appear, allowing you to create your WhatsApp Business Profile.
44

Provide your WhatsApp Business Display Name, preferred Timezone, Business Category, and Business Description, then click "Next."

Provide your WhatsApp Business Display Name, preferred Timezone, Business Category, and Business Description, then click "Next."
45

To add a phone number for WhatsApp, select the country code, enter the phone number, choose the verification method, and then click "Next" to verify the number you provided.

To add a phone number for WhatsApp, select the country code, enter the phone number, choose the verification method, and then click "Next" to verify the number you provided.
46

Using Text Message Verification, you will receive a code via text on your phone. Enter the code and click "Next" to proceed.

Using Text Message Verification, you will receive a code via text on your phone. Enter the code and click "Next" to proceed.
47

Click "Go to WhatsApp Manager", and it will take you to the Meta Business Portfolio to add a valid payment method.

Click "Go to WhatsApp Manager", and it will take you to the [Meta Business Portfolio](https://business.facebook.com/latest/whatsapp_manager/overview/) to add a valid payment method.
48

Click "Add payment method"

Click "Add payment method"
49

Click "Payment Settings"

Click "Payment Settings"
50

Click "Add payment method"

Click "Add payment method"
51

A pop-up will appear for you to select your location, preferred currency, and timezone. Click "Next".

A pop-up will appear for you to select your location, preferred currency, and timezone. Click "Next".
52

Click "Next" to enter your Debit or Credit Card Details.

Click "Next" to enter your Debit or Credit Card Details.
53

Enter your Debit or Credit Card Details, then click "Save".

Enter your Debit or Credit Card Details, then click "Save".
54

Your card has been successfully saved. Click "Done" to finish.

Your card has been successfully saved. Click "Done" to finish.
55

To update your Business Info, click "Edit".

To update your Business Info, click "Edit".
56

Once the Business Info is updated, click "Save".

Once the Business Info is updated, click "Save".
57

Click here to navigate to WhatsApp Account to assign your System User to this WhatsApp number.

Click here to navigate to [WhatsApp Account](https://business.facebook.com/latest/settings/whatsapp_account) to assign your System User to this WhatsApp number.
58

Click "Business Settings"

Click "Business Settings"
59

Under Accounts, click "WhatsApp Accounts". Select the WhatsApp Account, and click "Assign People".

Under Accounts, click "WhatsApp Accounts". Select the WhatsApp Account, and click "Assign People".
60

Select the System User, provide Full Control, and then click "Assign".

Select the System User, provide Full Control, and then click "Assign".
61

You have successfully assigned the System User to this WhatsApp account. Click "Done" to complete the process.

You have successfully assigned the System User to this WhatsApp account. Click "Done" to complete the process.
62

The next steps involve changing the status of the added number from "Pending" to "Connected." Please ensure that your Postman Account and Postman Desktop Agent are set up, and the Postman icon is running in your toolbar.

The next steps involve changing the status of the added number from "Pending" to "Connected." Please ensure that your Postman Account and Postman Desktop Agent are set up, and the Postman icon is running in your toolbar.
63

Go to Facebook Developers, under WhatsApp click "API Setup", then click "Run in Postman".

Go to [Facebook Developers]( https://developers.facebook.com/apps), under WhatsApp click "API Setup", then click "Run in Postman".
64

You will be redirected to Postman to set up a Fork Collection. If you haven't done so already, set up Postman Account and install the Postman Desktop Agent, then repeat the previous step.

You will be redirected to Postman to set up a Fork Collection. If you haven't done so already, set up [**Postman Account**](https://identity.getpostman.com/signup) and install the [**Postman Desktop Agent**](https://learning.postman.com/docs/getting-started/basics/about-postman-agent/#select-a-postman-agent-for-requests), then repeat the previous step.
65

In Postman, under the "Environments" section, ensure that the "Initial" and "Current" values of the Variables match your Facebook details. Then, ensure that "Cloud API" is checked.

In Postman, under the "Environments" section, ensure that the "Initial" and "Current" values of the Variables match your Facebook details. Then, ensure that "Cloud API" is checked.
66

Click "Collections", then "Step 5: Register Phone Number".

Click "Collections", then "Step 5: Register Phone Number".
67

Change "6-digit-pin" to numbers.

Change "6-digit-pin" to numbers.
68

Click "Send". Check the "Response" section at the bottom. It should display "success": true.

Click "Send". Check the "Response" section at the bottom. It should display "success": true.
69

Click "Step 3: Subscribe to your WABA"

Click "Step 3: Subscribe to your WABA"
70

Click "Send", the "Response" section at the bottom should display "success": true.

Click "Send", the "Response" section at the bottom should display "success": true.
71

In your SME Bot, disconnect the test number and connect the added phone number. To start, click "Channels".

In your SME Bot, disconnect the test number and connect the added phone number. To start, click "Channels".
72

Under WhatsApp, click "Disconnect"

Under WhatsApp, click "Disconnect"
73

Click "Disconnect" in the pop-up to confirm.

Click "Disconnect" in the pop-up to confirm.
74

Click "Connect" to begin the process.

Click "Connect" to begin the process.
75

Enter both the WABA ID and Access Token in your SME Bot account, click "Continue".

Enter both the WABA ID and Access Token in your SME Bot account, click "Continue".
76

Click "Connect" for the new number.

Click "Connect" for the new number.
77

✅ Done! In your Meta Business Portfolio, under "WhatsApp Manager" → "Phone Numbers", the added number status should now show "Connected." You’ve successfully connected your number to WhatsApp Cloud API and linked it to SME Bot. 🚀

✅ Done! In your [Meta Business Portfolio](https://business.facebook.com/latest/whatsapp_manager/overview/), under "WhatsApp Manager" → "Phone Numbers", the added number status should now show "Connected." You’ve successfully connected your number to WhatsApp Cloud API and linked it to SME Bot. 🚀