🔍 Deep Subscription & Webhook Analysis

Check 1: Current Page Subscriptions

{
    "error": {
        "message": "Error validating access token: Sessions for the user are not allowed because the user is not a confirmed user.",
        "type": "OAuthException",
        "code": 190,
        "error_subcode": 464,
        "fbtrace_id": "Af9TtjFMrhv5phhj7I6ZXr1"
    }
}
❌ Subscription issue detected!
Re-subscribe Now

Re-subscribing Page...

❌ Re-subscription failed:
{
    "error": {
        "message": "Error validating access token: Sessions for the user are not allowed because the user is not a confirmed user.",
        "type": "OAuthException",
        "code": 190,
        "error_subcode": 464,
        "fbtrace_id": "As4xbp3bWB4pkqUAHKN4t_k"
    }
}

Check 2: App Configuration

{
    "error": {
        "message": "Error validating access token: Sessions for the user are not allowed because the user is not a confirmed user.",
        "type": "OAuthException",
        "code": 190,
        "error_subcode": 464,
        "fbtrace_id": "A-ZguH-spwTdFfB595ifoiQ"
    }
}

Check 3: Webhook Configuration

Manual Check Required:
Go to: Webhooks Dashboard

Verify:
  1. Page webhook is active (green checkmark)
  2. Callback URL is: https://webhooks.cyradrive.com/qatar-webhook.php
  3. "leadgen" field is checked/subscribed
  4. App mode is "Live" (not Development)

Check 4: Manual Test Options

Try these alternative test methods:
  1. Method 1: Click "Test" on Webhooks Dashboard
    Go to Webhooks
    Find "leadgen" field and click "Test" button
    ✅ This already worked for you!

  2. Method 2: Preview Form Directly
    Go to Forms Library
    Click on form → Click "Share" or "Preview"
    Open preview link in INCOGNITO/PRIVATE window
    Fill and submit
    Check logs within 10 seconds

  3. Method 3: Check Recent Webhook Calls
    On Webhooks Dashboard, scroll to bottom
    Look for "Recent Deliveries" section
    See if any POST requests were sent

  4. Method 4: Use a Real Ad (if running)
    If you have an active Lead Ad running
    Submit a real lead through it
    This will definitely trigger webhook

Check 5: Log Files Status

FileDescriptionExistsWritableSize
webhook_log.txtMain webhook log0 bytes
all_requests.logAll requests log (add to webhook.php)0 bytes
leads_2026-06-11.txtToday's leadsN/A

Check 6: Diagnosis

Most Common Reasons Real Test Leads Don't Arrive:
  1. App still in Development Mode
    → App Settings → Basic → Check "App Mode" toggle at top
    → Must be "Live" not "Development"

  2. Page not properly subscribed
    → Click "Re-subscribe Now" button above
    → Verify in Webhooks Dashboard

  3. Testing wrong form
    → Make sure form is from the subscribed page (Edoxi Qatar)
    → Page ID must be: 583024741571087

  4. Webhook endpoint not accessible
    → Test: curl https://webhooks.cyradrive.com/qatar-webhook.php
    → Should return "Method Not Allowed"

  5. Token expired
    → Regenerate PAGE_ACCESS_TOKEN
    → Update webhook.php and this file

✅ Recommended Next Steps

Do these in order:
  1. Verify app is in "Live" mode
  2. Click "Re-subscribe Now" above
  3. Go to Forms Library and preview a form
  4. Submit the form in incognito window
  5. Check all_requests.log (if you added the debug code)
  6. Check webhook_log.txt
  7. If still nothing, check "Recent Deliveries" in Webhooks Dashboard