I
I
Ilya Korablev2015-08-13 14:28:32
In contact with
Ilya Korablev, 2015-08-13 14:28:32

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

2 answer(s)
I
Ilya Korablev, 2015-08-13
@swipeshot

In order to avoid such an error, get a token from the ip of the same country as your server is located.

M
Mishko_kun, 2015-10-05
@Mishko_kun

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 question

Ask a Question

731 491 924 answers to any question