Answer the question
In order to leave comments, you need to log in
How to pass access_token to VK Oauth 2 server?
Thank you in advance
I honestly did not find the answer in the documentation.
Authorization Code Flow
I pass parameters https://oauth.vk.com/access_token?parameters with code. I get an http response in the form of an html page with an access_token. I need the token to be passed to the server via a GET request.
Answer the question
In order to leave comments, you need to log in
1. Send the user to https://oauth.vk.com/authorize with the required GET parameters: client_id, redirect_uri
2. After authorization, the user will be redirected to your redirect_uri, where you should receive a GET code parameter
3. Perform a POST request from your server at https://oauth.vk.com/access_token with required parameters: client_id, client_secret, redirect_uri, code
https://vk.com/dev/authcode_flow_user
Why do you think that access_token can be obtained as a GET parameter? What for then in general dances with code, etc.?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question