You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to send message successfully. And I have verified my web hook. But I am unable to receive message. I am using test number provided by Facebook and haven't added my own WhatsApp business number. When I reply to that test number from WhatsApp then where exactly does that message go?
I am using following code provided by this WhatsApp Cloud API but where does it save incoming message? Does it show on screen or save it in file on disk?
<?php
require 'vendor/autoload.php';
define('STDOUT', fopen('php://stdout', 'w'));
use Netflie\WhatsAppCloudApi\WebHook;
$payload = file_get_contents('php://input');
fwrite(STDOUT, print_r($payload, true) . "\n");
// Instantiate the Webhook super class.
$webhook = new WebHook();
fwrite(STDOUT, print_r($webhook->read(json_decode($payload, true)), true) . "\n");
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am able to send message successfully. And I have verified my web hook. But I am unable to receive message. I am using test number provided by Facebook and haven't added my own WhatsApp business number. When I reply to that test number from WhatsApp then where exactly does that message go?
I am using following code provided by this WhatsApp Cloud API but where does it save incoming message? Does it show on screen or save it in file on disk?
Beta Was this translation helpful? Give feedback.
All reactions