-
Notifications
You must be signed in to change notification settings - Fork 2
/
delete_post.php
33 lines (31 loc) · 957 Bytes
/
delete_post.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
function send($type, $cookie, $id = null){
$url = "https://api.insta-follow.id/ig/$type.php?cookie=$cookie";
$url .= ($id) ? "&id=$id" : "";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response);
}
echo "+++ Auto Delete All Post Instagram +++\n";
$cookie = urlencode(readline("Cookie: "));
$sleep = readline("Sleep: ");
proccess:
echo "Getting List Post ... ";
$list = send('feed_user', $cookie);
echo "[DONE]\n";
foreach ($list->media_ids as $id) {
$delete = send('delete_post', $cookie, $id);
if($delete->status === "ok"){
echo "$id [SUCCESS]\n";
}else{
echo "$id [FAIL]\n";
}
echo "Sleep $sleep seconds ...\n";
sleep($sleep);
}
if ($list->next_max_id !== null)
goto proccess;