[Resolved] Webhook sub accepted but not receiving events

Ok I think I know the issue

In your handler:

if ($_SERVER[‘REQUEST_METHOD’] === ‘GET’) {

Add a

file_put_contents(“getRequestHeaders.txt”, getallheaders());

And get the contents:

I bet you are getting

‘hub.topic’ => "https://api.twitch.tv/helix/users/follows?first=1

instead of

‘hub.topic’ => "https://api.twitch.tv/helix/users/follows?first=1&to_id=23161357

If so you need to change your postData as follow:

$postData = array(
    'hub.mode' => $mode,
    'hub.topic' => "https://api.twitch.tv/helix/users/follows?first=1&to_id=23161357",
    'hub.callback' => '<website>/PHP/webHookHandle.php',
    'hub.lease_seconds' => $lease_seconds,
);

And retest