Answer the question
In order to leave comments, you need to log in
VK message?
Why is a message not sent in a contact?
Through the application Standalone Application
rights received the following:
<?php
$client_id = 'Мое приложение';
$scope = 'offline,messages'
?>
<a href="https://oauth.vk.com/authorize?client_id=<?=$client_id;?>&display=page&redirect_uri=https://oauth.vk.com/blank.html&scope=<?=$scope;?>&response_type=token&v=5.37">Нажать</a>
https://api.vk.com/method/messages.send?user_id={Тут пишу ID кому}&message=Привет&access_token={Тут пишу токен который получил}&v=5.0
{"error":{"error_code":15,"error_msg":"Access denied: no access to call this method","request_params":[{"key":"user_id","value":"ID который писал"},{"key":"v","value":"5.0"},{"key":"method","value":"messages.send"},{"key":"oauth","value":"1"}]}}
Answer the question
In order to leave comments, you need to log in
As announced, the Messages section is disabled for calling with user access keys. Now calling https://vk.com/dev/messages with a custom application token that hasn't been moderated will return error 15: "access denied to call this method".
And an attempt to log in with the messages access right results in the error “This application has no right to use messages”
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question