How to retrieve access_token in API VK via PHP?

Hello! Get access_token it in the address bar like this:
/index.php#access_token={TOKEN}
How do I retrieve it from the address bar with PHP?
July 2nd 19 at 16:56
1 answer
July 2nd 19 at 16:58
$token = $_GET['access_token'];
did not work - Shan commented on July 2nd 19 at 17:01
: it will not work, because all that after the lattice is not transmitted to the server - eugene_Kshleri commented on July 2nd 19 at 17:04
that is, the php is not removing? - Shan commented on July 2nd 19 at 17:07
: no, only js. And if you want php, then you need to pass through the get variable /index.php?access_token={TOKEN} if it is possible in your case - eugene_Kshleri commented on July 2nd 19 at 17:10
: can you suggest how to do this with js? - Shan commented on July 2nd 19 at 17:13
window.location.hash - eugene_Kshleri commented on July 2nd 19 at 17:16
: thank you - Shan commented on July 2nd 19 at 17:19

Find more questions by tags VKontaktePHP