if(isset($_POST["takipbirak"])){
$userSelect = explode(':', $_POST["kullanicilar"]);
\InstagramAPI\Instagram::$allowDangerousWebUsageAtMyOwnRisk = true;
$debug = false;
$truncatedDebug = false;
$ig = new \InstagramAPI\Instagram($debug, $truncatedDebug);
try {
$login = $ig->login($userSelect[0], $userSelect[1]);
$list = $ig->people->getSelfFollowing(\InstagramAPI\Signatures::generateUUID());
$account = json_decode($list, true);
foreach($account["users"] as $row){
$uyut = rand(5,25);
$ig->people->unfollow($row["pk"]);
sleep($uyut);
}
} catch (\Exception $e) {
die('Bir hata oluştu: ' . $e->getMessage());
}
}5 ile 25 saniye arasında bekleyen takip bırakma işlemi yapan basit kod yazılımı.