Ich verwende thisInstagram
Medien Post Third Party Bibliothek. Wenn ich in meinem Instagram-Account jedes Mal angemeldet bin, wenn ich einen Checkpoint benötige (Challenge), benötige ich einen Fehler, wie kann ich dieses Problem beheben?Medienpost in Instagram mit Web-API hochladen
Dies ist der Login-Code:
Fehlerreaktion:
try
{
$response = $this->request('accounts/login/')
->setNeedsAuth(false)
->addPost('phone_id', $this->phone_id)
->addPost('_csrftoken', $this->client->getToken())
->addPost('username', $this->username)
->addPost('adid', $this->advertising_id)
->addPost('guid', $this->uuid)
->addPost('device_id', $this->device_id)
->addPost('password', $this->password)
->addPost('login_attempt_count', 0)
->getResponse(new Response\LoginResponse());
}
catch (\InstagramAPI\Exception\InstagramException $e)
{
if ($e->hasResponse() && $e->getResponse()->isTwoFactorRequired())
{
// Login failed because two-factor login is required.
// Return server response to tell user they need 2-factor.
return $e->getResponse();
}
else
{
// Login failed for some other reason... Re-throw error.
throw $e;
}
}
Sie können mehr Details über diese here finden
Nachricht: "checkpoint_required", checkpoint_url: "https://i.instagram.com/challenge/6193546568/K2IwuBF47k/", Sperre: true, Status: "nicht bestanden", error_type: "checkpoint_challenge_required"
Wenn Sie irgendeine andere Art und Weise von Instagram Medien Post haben, dann können Sie mir empfehlen.