🚀 New: Anjok Connect WhatsApp Business App — Get Demo ₹500/mo

🔴 Meta WhatsApp Webhook Verification Failed? Fix in 5 Minutes

In this blog, we explain:

  • Why webhook verification fails
  • The correct PHP verification code
  • Common mistakes (very common!)
  • How Anjok Technologies fixes it fast

https://i.sstatic.net/b1bP2.png

https://community.n8n.io/uploads/default/optimized/3X/5/3/5318b9093927939fb1d67785d969ea62619c8858_2_1024x535.png

https://support.bolddesk.com/kb/attachment/article/15729/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMzMTQwIiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5ib2xkZGVzay5jb20ifQ.UlCaJi5Sbtbw4xMprhwbfcls6RhNZw_Y3evv8INlL48

💡 What is WhatsApp Webhook Verification?

Webhook verification is a one-time check done by Meta Platforms to confirm:

✔ Your webhook URL is reachable
✔ Your server responds correctly
✔ Your verify token matches

If any of these fail → Verification Failed error appears.

❌ Most Common Reasons for Webhook Verification Failure

From real client cases, 90% failures happen because of these:

1️⃣ Verify token mismatch
2️⃣ PHP file not echoing hub_challenge
3️⃣ URL not HTTPS
4️⃣ Wrong webhook URL path
5️⃣ Server error (500 / 403)
6️⃣ Extra output in PHP (echo / warning / HTML)

✅ Correct Way to Fix Webhook Verification (PHP)

STEP 1: Create Webhook PHP File

Create a file like:

 

whatsapp_webhook.php

STEP 2: Use This Correct PHP Verification Code

 

<?php $verify_token = "anjok_verify_token"; // same token in Meta if (    isset($_GET['hub_mode']) &&    $_GET['hub_mode'] === 'subscribe' &&    $_GET['hub_verify_token'] === $verify_token ) {    echo $_GET['hub_challenge'];    exit; } http_response_code(403); echo "Verification failed";

⚠️ Important rules

  • No HTML before or after
  • No spaces
  • No echo statements except hub_challenge

✅ STEP 3: Match Verify Token Exactly

In Meta Dashboard:

  • WhatsApp → Configuration → Webhooks
  • Verify Token = anjok_verify_token

👉 Token must match character by character.

https://us1.discourse-cdn.com/bubble/original/3X/e/4/e4a28aed2739b87d9c39c60656b8cfe6d6afc26b.png

https://support.bolddesk.com/kb/attachment/article/15729/inline?token=eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMzMTQwIiwib3JnaWQiOiIzIiwiaXNzIjoic3VwcG9ydC5ib2xkZGVzay5jb20ifQ.UlCaJi5Sbtbw4xMprhwbfcls6RhNZw_Y3evv8INlL48

https://i.sstatic.net/b1bP2.png

✅ STEP 4: Check Webhook URL (Very Important)

Your webhook URL must be:

✔ Publicly accessible
✔ HTTPS only
✔ Correct file path

✅ Correct Example

 

https://yourdomain.com/whatsapp_webhook.php 

❌ Wrong Examples

 

http://yourdomain.com/whatsapp_webhook.php   ❌ https://yourdomain.com/                      ❌ https://yourdomain.com/test/                 ❌ 

⚠️ Common Mistakes Developers Make

❌ Extra Output in PHP

 

echo "Webhook ready"; // ❌ remove this 

❌ PHP Errors / Warnings

  • Undefined index
  • Notice messages

👉 Turn off display errors or fix warnings.

❌ Using Localhost

 

http://localhost/webhook.php ❌ 

Meta cannot access localhost.

❌ Webhook Protected by Login / Firewall

Meta must access webhook without login.

✅ Quick Checklist (Fix in 5 Minutes)

✔ HTTPS enabled
✔ Correct webhook URL
✔ Verify token matched
✔ PHP echoes only hub_challenge
✔ No extra output
✔ Server returns 200 OK

Follow this → Webhook verification will pass

🧠 After Verification – What Happens?

Once verified:

  • Meta starts sending incoming messages
  • Delivery reports arrive
  • Read receipts arrive
  • Your PHP app can process WhatsApp messages

Webhook is now LIVE 🎉

🏢 How Anjok Technologies Helps

At Anjok Technologies, we fix:

  • Webhook verification failures
  • PHP & Laravel webhook setup
  • WhatsApp Cloud API full configuration
  • Billing error 131042
  • App review & permissions
  • Chatbot & automation setup

👉 Most webhook issues fixed in under 10 minutes.

📞 Contact Anjok Technologies

📱 +91 80729 70517
🌐 anjoktechnologies.in

Ask for WhatsApp API Webhook Support