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= ...
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
. , PHP.
, :
JavaScript URL- cookie .
JS , .
Source: https://habr.com/ru/post/1755493/More articles:Is it possible to create a jQuery event that fires when the scrollbar is released? - jqueryASP.Net - How to access the main page Object from a regular page? - asp.netAccess to the MasterPage variable on the content page - variablesCreating rows with an index between two numbers - tsqlIn Linq to SQL, why does assigning a linked object create a ChangeSet insert? - linqМожет ли LINQ упорядочить по индексу столбца? - linqHow to handle the encoding request correctly? - httpSession state in network load balancing scenario - databaseDoes the LoadBitMap () API create paint problems? - c ++D2010 TPanel / TFrame / TGroupBox / Other - What is the easiest? - delphiAll Articles