JnK13

Script delete semua status facebook

Sep 29th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. $access_token = "CAAAAAIZAgwGsBAJZBJZB33WZBc49yVScNMZA6Oun0MN54LKZC6KSTWNSKZBdfWlDiMiSKZB10s7w9N30SwmXRQfG38qWOrHQZDZD"; // ganti token klen, ambil di http://bit.ly/tokenBB
  5. $limit = "1000"; // jumlah status di apus
  6.  
  7.  
  8. /*
  9.  
  10. ************************************************************
  11. ****| SCRIPT DELETE ALL STATUS BY MUCHLIS FAROQI |****
  12. ************************************************************
  13.  
  14. */
  15.  
  16.  
  17. function auto($url){
  18. $data = curl_init();
  19. curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  20. curl_setopt($data, CURLOPT_URL, $url);
  21. $hasil = curl_exec($data);
  22. curl_close($data);
  23. return $hasil;
  24. }
  25. unlink ('dataLog');
  26. if(file_exists('dataLog')){ $log=json_encode(file('dataLog')); }else{ $log=''; }
  27. $stat=json_decode(auto('https://graph.beta.facebook.com/me/feed?fields=id,from&limit='.$limit.'&access_token='.$access_token),true);
  28. for($i=1;$i<=count($stat[data]);$i++){
  29. if(!ereg($stat[data][$i-1][id],$log)){
  30. $x=$stat[data][$i-1][id]."\n";
  31. $y=fopen('dataLog','a');
  32. fwrite($y,$x);
  33. fclose($y);
  34. auto('https://graph.beta.facebook.com/'.$stat[data][$i-1][id].'?access_token='.$access_token.'&method=delete');
  35. echo 'Status <span style="color:red">'.$stat[data][$i-1][from][name].'</span> berhasil di hapus ... <span style="color:green">[ <a href="http://facebook.com/'.$stat[data][$i-1][from][id].'" target="blank">CEK PROFIL</a> ]</span><hr/>';
  36. }
  37. }
  38. ?>
Advertisement
Add Comment
Please, Sign In to add comment