KinekaruFounder

Script auto unfriend php version

Oct 15th, 2018
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1.  
  2. <br><br><br><br><br><br><br>
  3. <div class="container">
  4. <div class="panel panel-primary">
  5. <div class="panel-heading">Delete Friends</div>
  6. <div class="panel-body">
  7. <p>Delete Teman Facebook Anda ( Random )</p>
  8. <form method="POST" action="">
  9. <div class="form-group">
  10. <label>Access Token :</label>
  11. <input id="email" type="text" class="form-control" name="token" placeholder="Paste Your Token Here.">
  12. </div>
  13. <div class="form-group">
  14. <label>Jumlah :</label>
  15. <select name="jumlah" class="form-control">
  16. <option value="1">1</option>
  17. <option value="2">2</option>
  18. <option value="5">5</option>
  19. <option value="10">10</option>
  20. <option value="15">15</option>
  21. <option value="20">20</option>
  22. <option value="50">50</option>
  23. <option value="100">100</option>
  24. <option value="1500">ALL</option>
  25. </select>
  26. </div>
  27. <button type="submit" id="submit" class="btn btn-primary btn-block" name="submit">Delete!</button>
  28. <button type="submit" formaction="/index.php" class="btn btn-danger form-control"><i class="fa fa-sign-out" aria-hidden="true"></i> Back To Bot Panel!</button>
  29. <br>
  30. </div>
  31. <?php
  32. if(isset($_POST[submit])){
  33. error_reporting(0);
  34. $token = $_POST[token];
  35. $limit = $_POST[jumlah];
  36. function hajar($yuerel, $dataAing=null) {
  37. $cuih = curl_init();
  38. curl_setopt($cuih, CURLOPT_URL, $yuerel);
  39. if($dataAing != null){
  40. curl_setopt($cuih, CURLOPT_POST, true);
  41. curl_setopt($cuih, CURLOPT_POSTFIELDS, $dataAing);
  42. }
  43. curl_setopt($cuih, CURLOPT_FOLLOWLOCATION, true);
  44. curl_setopt($cuih, CURLOPT_RETURNTRANSFER, true);
  45. curl_setopt($cuih, CURLOPT_SSL_VERIFYPEER, false);
  46. $eks = curl_exec($cuih);
  47. curl_close($cuih);
  48. return $eks;
  49. }
  50.  
  51. $menta = hajar("https://graph.facebook.com/me/friends?fields=id,name&limit=".$limit."&access_token=" . $token);
  52. $jason = json_decode($menta);
  53. foreach ($jason->data as $data) {
  54.  
  55. hajar("https://graph.facebook.com/me/friends?uid=".$data->id."&method=delete&access_token=" . $token);
  56. echo "SUCCESS DELETE --> " . $data->id . " // From : " . $data->name . "<br>";
  57. }
  58. }
  59. ?>
  60. </div>
  61. </div>
  62. </div>
Advertisement
Add Comment
Please, Sign In to add comment