I get this error when I call groups.join :

VK Validation required: please open redirect_uri in browser [какой-то id] 

Through curl, I open this url , but if after that I call groups.join again, vk will return the same error again.

If you go to this url through the browser, it will say:

Please do not copy data from the address bar for third-party sites. This way you can lose access to your account.

http://vk.com/dev/need_validation is the link, but not everything is written there.

How to open this url for user validation?

  • Perhaps when you open the link, you must enter your login / password. This is done due to the fact that the account was logged from a suspicious IP. Try to open the link in one of the console browsers, for example, links - awesoon
  • @soon not but from the browser how can I do this for users? ie with php I do it all - Man and PHP
  • Here I will not prompt. Logically, if the request originates from the same IP, for which validation was performed, then the access_token passed to the url should work. I used validation only for bot instances, so I can't say how it happens for users. - awesoon
  • I assume that the user needs to be redirected to him so that he will confirm this action. True, after this VC should redirect him to your site, for which he will need some parameter (probably?). - D-side
  • If you are given an exhaustive answer, mark it as correct (a daw opposite the selected answer). - Nicolas Chabanovsky

4 answers 4

If I understand correctly, then you are going to make the registration of users using their data from Vkontakte - perhaps then this method will suit you - http://ruseller.com/lessons.php?id=1659 - everything is done here through binding to the application through it you can get A certain user data nador - Avatar, Name, uid, etc. Perhaps you will do it and not have to bother with the redirect url

Here's how it is implemented in my http://onlinetracking.kz/comments.php

If you go to this url through the browser, it will say:

Please do not copy data from the address bar for third-party sites. This way you can lose access to your account.

Apparently you are logged in to the browser under another acc. If you open in private mode, then a phone number verification form will come out, you will need to enter the missing digits. CURL is solved without problems: find the form and its action, find the starting and ending numbers, the missing ones are sent in the code variable. Just keep in mind that the number of numbers may vary.

    "Vkontakte" gives such an error when you enter from a new unusual place, and you need to open that link from that place. If your application works from a remote server, and not from your computer, you must log in from the server. Ideally, from your own browser, skipping the port.

     $ ssh -D :8181 your-server 

    In the browser settings, install the proxy server 127.0.0.1:8181

    • Thanks, the answer is worth attention. You log in and get the token from your computer, from your IP, not from the IP, but the server is dima buhayov

    Lower the version of api to & v = 3.0 and you will be happy

    • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky