Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- @ini_set("output_buffering", "Off");
- @ini_set('implicit_flush', 1);
- @ini_set('zlib.output_compression', 0);
- @ini_set('max_execution_time',1000000);
- header( 'Content-type: text/html; charset=utf-8' );
- include 'akun.php';
- include 'API.php';
- echo "Mengambil list yang tidak follback anda...<br/>";
- notFollback();
- function notFollback($next_max_id = null, $i = 1)
- {
- global $agent, $ID;
- $action = 'following';
- $following = SendRequest('friendships/'.$ID.'/'.$action.'?max_id='.$next_max_id, false, false, $agent, true);
- $obj = json_decode($following[1]);
- @$max_id = $obj->next_max_id;
- foreach ($obj->users as $users) {
- $user_id = $users->pk;
- $username_ = $users->username;
- $check = SendRequest('friendships/show/'.$user_id.'/', false, false, $agent, true);
- $cek = json_decode($check[1]);
- if ($cek->followed_by == false) {
- echo $i . ". @" . $username_ . " belum follback<br/>";
- $action = 'destroy';
- $data = '{"user_id":"'.$user_id.'"}';
- $sig = GenerateSignature($data);
- $new_data = 'signed_body='.$sig.'.'.urlencode($data).'&ig_sig_key_version=4';
- $follow = SendRequest('friendships/'.$action.'/'.$user_id.'/', true, $new_data, $agent, true);
- $obj2 = json_decode($follow[1]);
- if ($obj2->status == "ok") {
- echo "-- Mengunfollow @" . $username_ . " Sukses<br/>";
- sleep(1);
- }
- $i++;
- flush();
- ob_flush();
- } else {
- echo "@" . $username_ . " saling follow<br/>";
- flush();
- ob_flush();
- }
- }
- if($max_id) {
- notFollback($max_id, $i);
- exit();
- }
- $i--;
- echo "$i yang belum follback sudah di unfollow<br/>";
- }
- echo "Adek Lelah... Sudah dulu bang<br/>";
- ___ITCrews.blogspot.com ft AT998.blogspot.com____
Advertisement
Add Comment
Please, Sign In to add comment