I'm trying to enable real time facebook subscription for my app. This is my PHP code
<?php
if(isset($_GET["hub_challenge"])){
echo $_GET["hub_challenge"];
return;
}
?>
This is just a test code which returns hub_challenge. I've uploaded it to my website at http://eno.parseapp.com/fbcb.php
I am trying to subscribe using Facebook's graph explorer. See image below:
But there is a weird problem. Instead of returning hub_challenge, it's returning the whole php code. Any idea what's wrong?
Thanks.