WABA Onboarding
This guide walks you through the process of connecting your business phone number to the HK Reach platform via the Meta Cloud API.
🏢 Business Owner's Guide (Non-Technical)
Follow these simple steps to get your WhatsApp automation started.
Prerequisites
- A Facebook Account with Admin access to your Business Manager.
- A phone number that does not have an active WhatsApp/Business app account.
- Access to receive SMS or a phone call on that number.
Step 1: Start Onboarding
- Log in to your HK Reach Dashboard.
- Navigate to Channels or WhatsApp Settings.
- Click the "Connect WhatsApp" button.
Step 2: Meta Authorization
- A Meta popup will appear. Log in to your Facebook account.
- Select the Meta Business Account you want to use.
- Follow the prompts to grant HK Reach permissions.
Step 3: Verify Your Phone Number
- Once authorized, select your phone number from the list.
- Choose your verification method: SMS or Voice Call.
- Enter the 6-digit code in the HK Reach dashboard.
Step 4: Finalize
- Once the status changes to "Connected", you are ready!
🛠️ Technical Administrator's Guide (Deep-Dive)
1. The OAuth Handshake
The frontend utilizes the Meta Embedded Signup flow.
- Endpoint:
POST /api/MetaOnboard/callback - Action: Exchanges code for a Long-Lived Access Token.
2. Discovery Logic
- WABA ID: Retrieved via
GET /me/whatsapp_business_accounts. - Phone Number ID: Retrieved via
GET /{waba_id}/phone_numbers.
3. Verification & Registration Flow
- Request OTP:
POST /{phone_number_id}/request_code. - Verify OTP:
POST /{phone_number_id}/verify_code. - Registration:
POST /{phone_number_id}/register. Stores an encrypted 6-digit PIN.
4. Webhook Subscription
- API Call:
POST /{waba_id}/subscribed_apps - Result: Subscribes the WABA to the Meta App for webhooks.
🎥 Video Tutorials
Learn how to get started with these step-by-step video guides: