S
S
Sedbol2019-07-24 21:09:20
In contact with
Sedbol, 2019-07-24 21:09:20

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>

I'm trying to send via the browser line like this:
https://api.vk.com/method/messages.send?user_id={Тут пишу ID кому}&message=Привет&access_token={Тут пишу токен который получил}&v=5.0

As a result, I get an error:
{"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"}]}}

What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2019-07-24
@Sedbol

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”

https://vk.com/apiclub?w=wall-1_390510

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question