Merhaba İf kısmındaki boşluğa ne Koymalıyım Nereyi Kontrol Ettirmeliyim
InstagramAPIInstagram::$allowDangerousWebUsageAtMyOwnRisk = true;
$debug = false;
$truncatedDebug = false;
$username = "hesapkadı";
$password="sifre";
$ig = new InstagramAPIInstagram($debug,$truncatedDebug);
$ig->setProxy("http://user:Pass@proxy:port");
try {
$loginResponse = $ig->login($username, $password);
if ($loginResponse !== null && $loginResponse->isTwoFactorRequired()) {
$twoFactorIdentifier = $loginResponse->getTwoFactorInfo()->getTwoFactorIdentifier();
// The "STDIN" lets you paste the code via terminal for testing.
// You should replace this line with the logic you want.
// The verification code will be sent by Instagram via SMS.
$verificationCode = trim(fgets(STDIN));
$ig->finishTwoFactorLogin($username, $password, $twoFactorIdentifier, "");
}
} catch (Exception $e) {}
if(Buraya Ne Gelmeli ? ){
//Login Başarılı
}else{
//Login Başarısız
}