L
L
lolka022019-01-10 10:43:13
API
lolka02, 2019-01-10 10:43:13

How to make mgp25/Instagram-API instagram code resubmit?

Trying to request the code as the first time with saved data, but the error "this field is required" is displayed

$ig = new Instagram();
$challengePath = 'challenge/' . $iUserId . '/' . $nonceCode . '/';
$choiceType = 0; // телефон - 0 , email - 1
$ig->changeUser($login, $password);
$response = $ig->request($challengePath)
    ->setNeedsAuth(false)
    ->addPost("choice", $choiceType)
    ->getDecodedResponse();

Instagram thinks that I'm trying to send an empty code and swears at it. How to resend the code by sms or email?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maksam07, 2019-01-14
@maksam07

It throws an error not about empty code. Sorry, but I already suggested enough, I agree with the developer of the library, who cut out the functions for creating / restoring accounts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question