I am trying to grab #access_token from a URL, it doesn't print anything
My url is like the following test.php#access_token=2f6b037435a6fc614ff5cab8a188dc70c4953f78%27
My PHP code:
echo $_GET['#access_token']
I tried the following as well
$url = $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$url=parse_url($url);
echo $url["fragment"]; //This variable contains the fragment