T
T
tuxx2015-01-22 14:35:04
API
tuxx, 2015-01-22 14:35:04

How to get a VK API token for a Standalone application?

To receive a token, open a window with the address

https://oauth.vk.com/authorize?client_id=APP_ID&sc...

But after clicking "Allow" in the window that appears, I get a message
standalone applications should use blank.html as redirect_uri to access messages

Maybe I'm not writing something correctly, or it's impossible to get a token for a standalone application on the server via PHP at all?
To work, I took the class https://github.com/fdcore/vk.api

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2015-01-22
@tuxx

In general, it is impossible to use it officially from PHP, because in standalones the user himself logs in through the browser.
But if you really want to, then you can
you need to go to this page authorized in VK, and your access_token will be in the address bar

R
rmfalx, 2018-01-29
@rmfalx

Damn, but how to implement this crap in python? Where do you need to write this redirect uri? In app settings?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question