Advertisement
EnggarHakim

sunduler

Jul 29th, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.25 KB | None | 0 0
  1. <?php
  2. $access_token= "token_Lu_Gan";
  3.  
  4. $stat=json_decode(auto('https://graph.facebook.com/me/home?fields=id,message,from,comments,type&access_token='.$access_token.'&offset=0&limit=1'),true);
  5. for($i=1;$i<=count($stat[data]);$i++){
  6. if(!ereg($stat[data][$i-1][id],$log)){
  7. $x=$stat[data][$i-1][id]."\n";
  8. $y=fopen('','a');
  9. fwrite($y,$x);
  10. fclose($y);
  11.  
  12. $text = array("sundul",
  13. "post sunduler",
  14. "sundul sundul up up up",
  15. "naik lagi",
  16. "keatas",
  17. "pucuk",
  18. "gogogo",
  19. "nomer 1 ",
  20. "yahh naik lg",
  21. "lagi lagi",
  22. "auto sunduler by Koceng Maho",
  23. "sunduler again",
  24. "again again sunduler",
  25. "pucuk",
  26. "wus wus nomor 1",
  27. "pucuk no",
  28. "wus pucuk",
  29. "yeay naik lagi",
  30. "up",
  31. "naik",
  32. "jos",
  33. "sundul",
  34. "jgn kalah post nya sundul gan",
  35. "gila lu ndro sundul",
  36. "sundul lagi",
  37. "sundul sundul",
  38. "kekok sundul",);
  39.  
  40. $sayang= $text[rand(0,count($text)-1)];
  41. $message=($sayang);
  42.  
  43. auto('https://graph.facebook.com/ID_post_status_digrup_atau_pp_or_status_fb_lu_gan/comments?access_token='.$access_token.'&message='.urlencode($message).'+'.urlencode($fx).'&method=post');
  44. }
  45. }
  46. function auto($url){
  47. $data = curl_init();
  48. curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  49. curl_setopt($data, CURLOPT_URL, $url);
  50. $hasil = curl_exec($data);
  51. curl_close($data);
  52. return $hasil;
  53. }
  54. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement