G
G
Gleb2014-12-11 23:06:38
JavaScript
Gleb, 2014-12-11 23:06:38

How to remember Access Token on Redirect_URI page after VK authorization?

Hello. The task is this: It is necessary to access the user's wall from a mobile application without using the contact SDK.
I send the user to the browser with the string "oauth.vk.com/authorize..." to allow access to his wall. In the Redirect_URI parameter, I specify my page on the Internet (so far this is a banal index.html without content). Next, the contact sends the user to my page containing a GET request with a parameter that contains the token and the user's Id.
Question: How to "tear out" these parameters (token and user id) at the moment the user goes to Redirect_URI from the address bar for their subsequent processing in JavaScript?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Savostin, 2014-12-11
@savostin

window.location.hash

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question