T
T
TAnonim2016-10-25 18:53:45
In contact with
TAnonim, 2016-10-25 18:53:45

What is the best way to get access_token vk api?

Greetings. I am writing a bot. Question about access_token: after all, the token is valid only for some limited period of time, and the bot must work without interruption, what to do in this case? I receive the token through

https://oauth.vk.com/authorize?client_id=111111&scope=wall,photos,offline&redirect_uri=http://api.vk.com/blank.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
entermix, 2016-10-25
@TAnonim

offline
(+65536) Access to the API at any time (when using this option, the expires_in parameter returned together with the access_token contains 0 - the token is perpetual).

https://vk.com/dev/permissions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question