Answer the question
In order to leave comments, you need to log in
Vkontakte OAuth2. What's wrong?
The first time access token comes + along with the code in get, the second time I request access token by code (reload the page) VK says:
[error] => invalid_grant
[error_description] => Code is invalid or expired.
All parameters are correct, I tried to reinstall the application
https:// oauth.vk.com/access_token?redirect_uri=[xxx]&client_id=[xxx]&client_secret=[xxx]&code=[xxx]
Answer the question
In order to leave comments, you need to log in
Everything is written here .
This code is one-time and can be used within 1 hour. To get a new access_token (and you don't need to get it again each time), you need to get a new code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question