Answer the question
In order to leave comments, you need to log in
How to deal with Validation required?
Hello.
When calling the method all the time VC returns 17 error. How to deal with it?
The code:
<?php
$token = "тут токен";
$online = json_decode(file_get_contents("https://api.vk.com/method/messages.send?v=5.34&user_id=1&message=test&access_token=$token"), true);
echo file_get_contents($online['error']['redirect_uri']);
?>
Answer the question
In order to leave comments, you need to log in
In order to avoid such an error, get a token from the ip of the same country as your server is located.
The Ilya Korablev method helped me only for a short time, then VKontakte stopped responding to it.
I found another solution for myself:
You need to open the redirect_uri returned by VKontakte directly on the server. Log in and confirm that the account is really yours.
You can install a graphical shell and connect like this: pctuner.ru/page-al-debian_lxde_xrdp.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question