E
E
Eugene2018-12-19 20:20:08
JavaScript
Eugene, 2018-12-19 20:20:08

How can the VK application access the correspondence?

I am writing an extension for chrome, in the work of which it is necessary to access the correspondence for its analysis. The Standalone application allows you to create a link, when you click on it, you can manually pull out the token. This option is not suitable. The question is how to get access to the correspondence? Maybe without using a token. I've seen similar extensions that implement this, but I don't know how.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2018-12-19
@you_are_enot

create a link, when you click on it, you can manually pull out the token

this is your option.
It is necessary to create a VK application of the Standalone type . Direct the user to a link to request permissions ( https://oauth.vk.com/authorize?...) followed by a redirect to https://oauth.vk.com/blank.html
your extension should detect that a tab has appeared with the address above ( .../blank.html) and then work and pull it out of the hash from there access_token.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question