Vkontakte API using OAuth does not work with Captcha
Asked Answered
S

1

36

Vkontakte API rejects requests with Captcha. Here is the example what I do.

After the third request I get:

Captcha error (14) - Captcha needed.

According to documentation it's sufficient to add captcha_sid and captcha_key parameters to the original requests and repeat the request.

But the response is still Captcha error (14). Is it possible to work with Captcha and OAuth in Vkontakte API?

Spitfire answered 8/11, 2012 at 0:43 Comment(1)
You sure so you pass "captcha_sid" and "captcha_key" correct way? I'm using them as well, the point is so "Captcha needed" error will repeat if sid or associated key(text from captcha) is incorrectNormally
L
1

Captcha error

Error code: 14

Error text: Captcha needed

and captcha confirmation is required, when:

action (e.g. sending a message) is performed too frequently, an API request may return "Captcha needed" error. After that a user needs to enter a code from the image and resend a request with a Captcha code input in the request parameters.

More information can be found in their manual.

If this error encounters, you need to process additionaly the following parameters from the response with the error message:

  1. captcha_sid – captcha identifier;
  2. captcha_img – a link to an image that will be shown to a user.

When user enters text from captcha_img you have to re-send the request adding following parameters:

  1. captcha_sid – received ID;
  2. captcha_key – text input you've gotten from user.

Do not forget to provide the valid access token as well, to make the user authorization, or the request would be declined with another type of error.

Lardy answered 10/5, 2016 at 11:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.