Can I use VK API to send personal messages to subscribers? Well, let's say the user has logged on my site through VK, then a message about successful registration is sent to his mail.

Is it possible to send this message to him in the LAN of Vkontakte himself? If it is not so easy at registration, is there any way to do it differently? (well, maybe there is an opportunity to create any application in the VC, the user hands up to confirm access in it, after the website either directly through the API or through this application sends the user notification in the VC). Well, it's all thoughts. Is it possible to send the user from the site server (directly or indirectly) notifications in the Vkontakte LAN in any way?

    2 answers 2

    Can I use VK API to send personal messages to subscribers? Well, let's say the user has logged on my site through VK, then a message about successful registration is sent to his mail.

    Can

    Is it possible to send this message to him in the LAN of Vkontakte himself?

    Can

    create any application in the VC, the user hands up to confirm access in it, after the website either directly through the API or through this application sends the user notification in the VC)

    It is not necessary for the user to allow access. You will send him a message not from his own account?

    Is it possible to send the user from the site server (directly or indirectly) notifications in the Vkontakte LAN in any way?

    Realistically. Here is the method you need.

      Directly impossible. VK documentation about messages.send :

      This method is available only to standalone applications.

      Therefore, it is necessary that the user follow the link of the type http://oauth.vk.com/authorize?client_id=<app_id>&scope=messages,offline&redirect_uri=http://oauth.vk.com/blank.html&display=popup&response_type=token (where app_id is the pre-registered application ID of Standalone ) and independently passed access_token to your application. With the resulting token, you can call the messages.send method. See https://toster.ru/q/223460

      • one
        if the link given by you becomes invalid, your answer will lose its meaning. it is better to provide basic information here, and give the link as an additional illustration. - aleksandr barakin