$return_args possibly adding escape slashes
-
Hello,
Amazing plugin, thank you for writing it. I was able to get a full implementation done to receive data and am working on a second one.
Specifically for Facebook Webhooks, I am trying to do the verify step. I am able to respond to the Facebook request, but it looks like $return_args is adding additional backslashes to escape the string.
Here is a code sample:
if ($_GET['hub_challenge']) { $return_args = $_GET['hub_challenge']; error_log(print_r($return_args, true)); return $return_args; }
I can see in the error_log that the value I expect is correct for $return_args, but I think some processing happens after that because Facebook is showing me this:
The URL couldn’t be validated. Response does not match challenge, expected value=”271718342″, received=”\”271718342\””
In my logs those \” are not there. Is there some processing that might be causing this?
Thanks!
- The topic ‘$return_args possibly adding escape slashes’ is closed to new replies.