DEV Community

Wabbiyo
Wabbiyo

Posted on

How a WordPress WhatsApp plugin talks to Meta's Cloud API

Adding WhatsApp to a WordPress site usually means a chat button or a separate SaaS dashboard. A third route is a plugin that talks to Meta's WhatsApp Business Cloud API straight from your own server. Here is how that works.
The three nodes
A customer messages your business number in the WhatsApp app. Meta's Cloud API receives it and forwards it to your site through a webhook. The plugin handles the message and replies over the REST API. No vendor server sits in the middle.
Setup in three steps

  1. Upload the plugin ZIP and activate it.
  2. Use Meta's embedded signup to create or link a WhatsApp Business account; the API token is issued during signup.
  3. Confirm the webhook is live and send a test message. Where the data lives Contacts, conversations and consent records sit in your WordPress database. Whatever plugin you pick, check that stored credentials are encrypted at rest. Wabbiyo uses AES-256-GCM for this. The 24-hour rule You can send free-form replies within 24 hours of the customer's last message. After that you need a Meta-approved template. A good plugin tracks template approval status so you are not guessing. Triggers from WordPress Events come from the places your site already has: form plugins (Contact Form 7, WPForms, Gravity Forms, Elementor forms), WooCommerce events such as cart updates and order status changes, and keywords typed into a chat widget. Trade-offs Self-hosting means you own uptime and updates (WordPress 6.4+ and PHP 8.1+ for Wabbiyo), and there is no mobile app. In return, you keep the data and pay Meta directly for messages. Wabbiyo is one implementation of this approach: Wabbiyo features and the setup guide.

Top comments (0)