WhatsApp Business Cloud API
Official Meta WhatsApp Cloud APIComplete English guide for new Meta accounts and existing Meta Apps connected to Facebook/Instagram
Copy and paste these required legal URLs into Meta App > App settings → Basic:
Choose Your Starting Point: New Meta App vs. Existing Meta App
You do NOT need to be a Meta Tech Provider. Any business can connect its own phone number using Meta’s official WhatsApp Cloud API—either inside a brand-new Meta App or inside the SAME Meta App you already created for Facebook Messenger.
- If you DO NOT have a Meta App yet: Follow Step 2A (Create a new Business App from scratch).
- If you ALREADY have a Meta App (e.g., for your Taqfu Facebook Page): Skip creating a new app and follow Step 2B to add WhatsApp inside your existing app.
Step 2A (Brand-New Setup): Create a Meta Business App
Go to developers.facebook.com/apps, click "Create App", select "Other" -> "Business" (or WhatsApp Business use case), give the app a name (e.g. "My Store WhatsApp AI"), select your Meta Business Portfolio (create one if prompted), and click "Create App".
- In the left sidebar or App Dashboard under "Add products to your app", find "WhatsApp" and click "Set up".
- Meta automatically attaches your selected Business Portfolio (or lets you pick one).
Step 2B (Already Have a Taqfu Facebook App): Add WhatsApp to Your Existing App
You do not need a second app! Open developers.facebook.com/apps and click your existing Meta App where Facebook Messenger is connected.
- Make sure your existing app is linked to a Meta Business Portfolio under App Settings > Basic > Business Portfolio.
- Scroll to "Add products to your app" on the App Dashboard, find "WhatsApp", and click "Set up".
- Note: Messenger uses /api/webhook/facebook, while WhatsApp uses its own Webhook section (/api/webhook/whatsapp) inside the exact same app—both work side-by-side without conflict.
Register & Verify Your Business Phone Number (Production or Test)
In the left sidebar of your Meta App, go to WhatsApp > API Setup. Here you will see a Meta Test Number (useful for quick testing) along with your Phone Number ID and WhatsApp Business Account (WABA) ID.
- For testing only: You can immediately use Meta’s free sandbox Test Number and add up to 5 recipient test phone numbers under the "To" field.
- For real customer traffic (Production): Scroll down on WhatsApp > API Setup and click "Add phone number". Enter your Business Display Name, category, and your real phone number, then verify ownership via SMS or Voice OTP.
- Important: If that phone number is currently active on the regular WhatsApp or WhatsApp Business mobile app, delete that mobile WhatsApp account first (Settings > Account > Delete account) before linking it to Cloud API.
- Copy both your Phone Number ID and WhatsApp Business Account ID (WABA ID) from the API Setup screen.
Generate a Permanent System User Access Token (Do Not Use Temporary 24h Token)
The token shown on API Setup expires after 24 hours. Always generate a non-expiring System User Token from Meta Business Manager:
- Open business.facebook.com/settings (or Meta Business Suite > Settings) and select the same Business Portfolio.
- Go to Users > System Users > Click "Add" (or select an existing Admin System User, e.g. from your Facebook setup). Name it e.g. "Taqfu Cloud API" with role "Admin".
- Click "Assign Assets": select Apps -> your Meta App (enable Full Control) AND select WhatsApp Accounts -> your WABA (enable Full Control), then Save Changes.
- Click "Generate New Token" -> choose your Meta App -> set Token Expiration to "Never" (Permanent).
- Check BOTH permissions: whatsapp_business_messaging AND whatsapp_business_management -> Click "Generate Token" and copy it safely.
Configure the WhatsApp Webhook in Meta Developer Dashboard
Inside your Meta Developer App, open WhatsApp > Configuration in the left sidebar and click "Edit" next to Webhook:
- Callback URL: Paste the Taqfu WhatsApp Webhook Callback URL shown below (/api/webhook/whatsapp).
- Verify Token: Copy and paste the exact Verify Token shown below.
- Click "Verify and Save". (If Meta fails to verify, double-check that you copied the full Verify Token and HTTPS URL without extra spaces.)
- Right below Callback URL, click "Webhook fields > Manage", find "messages", toggle "Subscribe" ON, and click "Done".
Verify & Connect Inside Taqfu AI + Switch App Live
Return to Taqfu Dashboard > Channels & AI > click WhatsApp Business Cloud API, paste your Phone Number ID, WABA ID, Permanent Access Token, and Meta App Secret, then click "Verify & Connect".
- Taqfu automatically validates your phone number with Meta Graph API and subscribes your WABA to receive messages.
- In Meta Developer Dashboard, make sure your App Mode switch at the top bar is set to "Live" (add Privacy Policy URL & Terms URL under App Settings > Basic if prompted).
- For multiple numbers or stores: You can add additional phone numbers inside the same Business Portfolio/App (up to 2 initially, up to 20+ after Meta Business Verification) and connect each Phone Number ID to its own Taqfu store.
⚡ Webhook Callback & Verify Token Info
https://taqfu.com/api/webhook/whatsapp🔒 For security, your unique store Verify Token is stored privately inside your account. Open Dashboard > Channels & AI > Manage to copy your store Verify Token.
• 24-Hour Customer Service Window: Meta allows free-form AI & agent replies for 24 hours after the customer’s last message. After 24 hours pass, Meta requires an approved Template message.
• Meta Billing & Free Allowance: Add a payment method under Meta Business Settings > Billing & Payments > WhatsApp Business Account before scaling production volume. Customer-initiated service replies and messaging tiers (250 -> 2,000 -> 10,000 -> Unlimited unique users/day) are managed directly in Meta Business Portfolio.
• Security: Taqfu encrypts your Permanent Access Token using AES-256-GCM and validates every incoming Meta webhook with X-Hub-Signature-256 HMAC verification.