A
A
Andrello2014-12-20 14:41:50
PHP
Andrello, 2014-12-20 14:41:50

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

2 answer(s)
A
Alexey Evlampiev, 2014-12-20
@Alevs

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.

R
Rikcon, 2014-12-20
@Rikcon

With such a question, it would not be bad to contact VK technical support.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question