Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

💬Legacy integrations

Connect the WhatsApp channel

Set up a Meta developer account

1. Register or log in Facebook Developer Register or log in to Facebook Developer, then click "Create App."

  1. Choose "Business" as the application type.

  1. Enter the app name. If you don't have a business account, you can leave it unselected. After entering the name, click "Create App.",After entering the application name, if you don't have a business account, you can leave it unselected. After clicking "Create App," you will be redirected to the Meta dashboard.

  1. Open the created app page, scroll down until you see "WhatsApp," then click "Set up."

  1. Press "Continue" to accept the Cloud API terms of use.

  1. You can send and receive test messages by selecting "Start Now" to verify whether the app settings were successful.

Connect phone number

  1. Click "Add Phone Number" to link your phone number to your WhatsApp Business account.

  1. Fill in your business information, then click "Next."

  1. Enter your phone number for verification. You can verify via SMS or call and receive a six-digit code.

4. Check the send and receive messages area, where the phone number you added will be displayed. Send and receive messages, where the added phone number will be displayed.

You have connected your phone number to WhatsApp! Next, you need to connect it to FIRST LINE so you can send and receive messages from FIRST LINE.

Connect WhatsApp to FIRST LINE

  1. Click the "WhatsApp" page under Channels, then click the authorize button. This will open Facebook and prompt you to choose the WhatsApp Business account to authorize. Once successful, the list will show the authorized WhatsApp Business account(s).

  1. Next, you will see in the list a WhatsApp account that has not yet been linked to a phone number. Click the edit button under Actions to open the individual WhatsApp page for configuration.

  1. Select the phone number you want to connect, and the number must have been verified by Meta.

Add callback URL

  1. Return to the WhatsApp section in the Facebook Developer app. Find the "Configuration" subsection and set the callback URL. Enter the generated callback URL and verification token into the corresponding fields in the webhook dialog, then confirm and save your changes.

Subscribe to Webhook events

  1. In the "Webhooks fields" section below, click "Edit" and choose "messages" from the menu, then subscribe to the message events.

Integration complete

🎉 Congratulations! You have completed the WhatsApp Cloud API integration setup, and you can now start serving customers.

Troubleshooting

How do I change my profile picture and display name?

After you authorize WhatsApp permissions to FIRST LINE, you can adjust and modify them through the list.

How do I create a message template?

When you initiate a conversation, or contact a customer who hasn't talked to you in the past 24 hours, you must use a registered template message, and it must be approved by WhatsApp before it can be sent.

  1. Go to WhatsApp Business Manager management interface.

  2. In the left panel, go to "Account Tools" > "Message Templates."

  3. Click "Create Template" in the top right corner.

  4. Once your submitted template is approved, it can be sent through FIRST LINE.

The customer did not receive the message after it was sent.

For customers who have never started a conversation with you, or who have not sent you a message in an existing thread within the past 24 hours, template messages are the only type of message that can be sent to them.

Other types of messages can only be sent after the customer contacts you.

Last updated