Get # from url in php

I am trying to code facebook API

it says here: http://developers.facebook.com/docs/authentication/javascript to get the access_token property, but this is after #, not?

so how can i get it?

http://www.example.com/callback#access_token=...&expires_in= ...

+3
source share
2 answers

You cannot do this in PHP - you can only access it in javascript - the fragment / hash never reaches the server, it is processed by the browser

in javascript, you can access the fragment using

window.location.hash
+4
source

. , PHP.

, :

JavaScript URL- cookie .

JS , .

+2

Source: https://habr.com/ru/post/1755493/


All Articles