R
R
Radren2015-03-10 23:38:30
Django
Radren, 2015-03-10 23:38:30

How to log in to vk.com through standalone django application?

The Django 1.6.10 program is deployed on a US server.
After receiving a token from vk.com, when trying to access api vk.com, I get the following error
VkAPIMethodError at /func/1/
17. Validation required: please open redirect_uri in browser 234307691. params = [{u'value': u'1' . u'access_token'}, {u'value': u'1426017730', u'key': u'timestamp'}, {u'value': u'5.20', u'key': u'v'}]
To connect to vk.com I use the vk library. What could be the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya, 2015-03-14
@FireGM

For the server, you first need to get the code, and then, using it, get the token on the server itself.
https://vk.com/dev/auth_sites

R
Radren, 2015-03-15
@Radren

That's what I do. I request code on it I get a token. But further, when trying to authorize by token, the indicated error occurs.

Y
Yashko, 2016-09-10
@Yashko

If it is possible to install NodeJS, then you can use this script:
https://github.com/Yashko/vk-validation-node
It will validate the phone to the side server and you can log in.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question