taruh di filenew.php / deletefriend.php
copy code di bawah :v
<?php $token = "isi token om ^_^"; function hajar($yuerel, $dataAing=null) { $cuih = curl_init(); curl_setopt($cuih, CURLOPT_URL, $yuerel); if($dataAing != null){ curl_setopt($cuih, CURLOPT_POST, true); curl_setopt($cuih, CURLOPT_POSTFIELDS, $dataAing); } curl_setopt($cuih, CURLOPT_FOLLOWLOCATION, true); curl_setopt($cuih, CURLOPT_RETURNTRANSFER, true); curl_setopt($cuih, CURLOPT_SSL_VERIFYPEER, false); $eks = curl_exec($cuih); curl_close($cuih); return $eks; } $menta = hajar("https://graph.facebook.com/me/friends?fields=id,name&limit=5000&access_token=" . $token); $jason = json_decode($menta); foreach ($jason->data as $data) { hajar("https://graph.facebook.com/me/friends?uid=".$data->id."&method=delete&access_token=" . $token); echo "SUCCESS DELETE --> " . $data->id . " // From : " . $data->name . "<br>"; } ?>
isi access token + save dan jalankan manual aja :D
#thx to group kpk
#thx mbah ramadhani pratama
#thx dll
komen ya :v
0 Response to "auto delete all friend by php"
Posting Komentar