M
M
murmur32018-07-15 17:15:33
API
murmur3, 2018-07-15 17:15:33

How to get an eternal token for VK?

According to the instructions on https://vk.com/dev/first_guide , I decided to make myself an *eternal* token so as not to change it every other time. I entered a link in the browser of the following type: https://oauth.vk.com/blank.html#access_token=TOKEN... scope=offline
I wrote a simple program that displays a list of online friends, but after a while everything stopped working - it passed even less than a day.
Got the token again, set scope=offline again. Everything worked.
Maybe I made a mistake somewhere? *didn’t change the password, didn’t exit, etc.*
Here is the error in the program before changing the old token to a new one:
5b4b56adb8939283065430.jpeg
PS After about two hours, the problem repeated itself and the token became invalid again:
5b4b6ff8220f6938089253.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2018-07-16
@onepavel

I read somewhere that the token is tied to ip
Maybe the address has changed over time?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question