I am experinmenting with Facebook Messenger Bot.
When the below webhook (index.php
) is placed under /var/www/wei48221.com/html/
, it could capture
the data sent from Facebook and save them in "fb.txt" under /var/www/wei48221.com/html/callback/
.
However, if the webhook (index.php
) is placed under /var/www/wei48221.com/html/callback/
it cannot
capture the data sent from Facebook even though the new callback URL https://wei48221.com/callback
has passed Facebook's verification.
Below is the content of "index.php".
<?php
file_put_contents("/var/www/wei48221.com/html/callback/fb.txt", file_get_contents("php://input"));
Could anyone shed some light on this issue?