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
} Mgp25 Login Kontrol Yardım
4
●423
- 06-09-2019, 23:53:27Merhaba İf kısmındaki boşluğa ne Koymalıyım Nereyi Kontrol Ettirmeliyim
- 06-09-2019, 23:56:03Nasıl Yani Hocam İşte Standart Mgp25 apisi instagramınEnes65532 adlı üyeden alıntı: mesajı görüntüle
- 06-09-2019, 23:58:13Catch içine düşerse zaten login başarısızdır. orada ekstra if ile kontrol etmenize gerek yok $e->getMessage() ile başarısız login sebebini alabilirsiniz.
- 07-09-2019, 01:05:26sonunda hocam Çok Saolunmehmetiscod adlı üyeden alıntı: mesajı görüntüle