WhatsApp Business API Setup
Complete setup to send tickets via WhatsApp
1Create Meta Developer App
✅ You've already done this by accessing Accounts Center!
Next: Go to Meta Developer Dashboard
2Create WhatsApp Business App
- Click "Create App"
- Choose "Business" type
- Name it (e.g., "FMG_6IX Tickets")
- Add WhatsApp product to your app
3Get Your API Credentials
You need 2 things:
WHATSAPP_ACCESS_TOKEN
Found in: WhatsApp → API Setup → Temporary Access Token
⚠️ Generate a permanent token for production!
WHATSAPP_PHONE_NUMBER_ID
Found in: WhatsApp → API Setup → Phone Number ID
Where to find these: In your app dashboard, go to:
WhatsApp → API Setup → Configuration
4Add Secrets to Base44
- Go to your Base44 dashboard
- Navigate to Settings → Secrets
- Add these two secrets:
WHATSAPP_ACCESS_TOKENWHATSAPP_PHONE_NUMBER_ID
5Create Message Template
IMPORTANT: WhatsApp requires pre-approved templates
You cannot send custom messages. You must create and get approval for templates.
Create a template named: ticket_delivery
Template Content:
Hi {{1}},
Your ticket for {{2}} is ready!
🎫 Ticket Code: {{3}}
📅 Event Date: {{4}}
Show this QR code at the venue for entry.
Thank you!
- FMG_6IXVariables: 1=Name, 2=Event Title, 3=Ticket Code, 4=Event Date
How to create:
Dashboard → WhatsApp → Message Templates → Create Template
Approval usually takes 1-2 hours
6Test It Out!
Once your template is approved:
- Go to Send Tickets page
- Select a ticket
- Click "Send via WhatsApp"
- Enter the recipient's phone number with country code (e.g., +14165551234)
You're all set!
The ticket will be delivered via WhatsApp with the QR code.
