I
I
Ivan2020-12-31 08:41:03
JavaScript
Ivan, 2020-12-31 08:41:03

How to connect VK Connect?

Hello! Help me figure out how to connect the VK Connect library.
I'm trying to add my VK application, but they wrote to me "For it to work correctly, it must have the VK Connect JavaScript library connected, and when it starts, the VKWebAppInit event is called on the main page"
On the page https://vk.com/dev/vk_apps_docs it says , supposedly you need to install the package on the web server.
And it’s easier not to connect this library in any way, using regular JS to insert it into the page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tschin, 2020-12-31
@skapunker

https://www.npmjs.com/package/@vkontakte/vk-connect
See Usage section.

For use in a browser, include the file dist/index.umd.js and use as follows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question