FoPost LogoFoPost Docs
WordPressPlatform Configuration

WhatsApp

Configure WhatsApp in the FoPost WordPress plugin.

WhatsApp

Configure the OwlStack WordPress plugin to send messages via the WhatsApp Business API.

Prerequisites

You need a WhatsApp Business account and access to the WhatsApp Cloud API.

Getting WhatsApp API Credentials

  1. Go to Meta for Developers
  2. Create a new app (choose Business type)
  3. Add the WhatsApp product
  4. Go to WhatsApp > Getting Started
  5. Copy the Access Token (generate a permanent token for production)
  6. Copy the Phone Number ID from the API setup page

Business Verification

For production use, your Meta Business account must be verified. The test mode allows sending to up to 5 numbers.

Settings

Navigate to OwlStack > WhatsApp in the WordPress admin.

FieldDescription
Access TokenWhatsApp Cloud API access token
Phone Number IDThe sender phone number's ID from the Cloud API

Step-by-step

  1. Go to OwlStack > WhatsApp in your WordPress admin
  2. Paste your Access Token
  3. Enter your Phone Number ID
  4. Click Save Settings

Testing

After saving your settings:

  1. Click Test Connection to verify your access token and phone number
  2. Click Send Test Message to send a test message
  3. Check the recipient's WhatsApp to confirm the message arrived

Publishing

Once configured, WhatsApp appears as a toggle in the OwlStack meta box on post edit screens.

Programmatic publishing

// Send a message
owlstack()->whatsapp('Hello from WordPress!');

Message Templates

For outbound messages to users who haven't messaged you, WhatsApp requires pre-approved message templates. Consult the WhatsApp Business API documentation for template setup.

Constraints

ConstraintValue
Max message length4,096 characters
Max media size16 MB (images), 100 MB (video)
Supported media typesJPEG, PNG, MP4, PDF, OGG audio
Rate limitVaries by business tier

Troubleshooting

IssueSolution
"Unauthorized" errorAccess token may have expired; generate a new permanent token
"Phone number not found"Verify the Phone Number ID from the Cloud API setup
"Template required"Use a pre-approved message template for outbound messages
Messages not deliveredCheck the recipient's number format (include country code)

On this page