faizalichsan

script bot like 2014 work !!

Oct 8th, 2014
365
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <?php
  2.  
  3. $access_token =CAAAAKLSe4lIBAEjZCSlaXhpp0vp7sLutZBf5HPU7J8R6LvEAMRBAqBBDoyxihfPa2UFXRGoAL8yDcQTRasW3LvzkoKeJpbzmBo4yRpQ7iRXmqeK1ZAZClaybg1CZCZAztlZBuZCSWQHb55RyYkZCtKcptiwT53EbNS5H3egS1FYsGkO3lZAO4w4dOCKpRTVkTz3w3Pq6SqEaDbaQZDZD;
  4.  
  5. if(file_exists('cm_log')){
  6. $log=json_encode(file('cm_log'));
  7. }else{
  8. $log='';
  9. }
  10. $me = json_decode(auto('https://graph.facebook.com/me?access_token='.$access_token.'&fields=id'),true);
  11. $stat=json_decode(auto('https://graph.facebook.com/me/home?fields=id,message,from,comments,type&access_token='.$access_token.'&offset=0&limit=15'),true);
  12.  
  13.  
  14. for($i=1;$i<=count($stat[data]);$i++){
  15. if(!ereg($stat[data][$i-1][id],$log)){
  16. if($stat[data][$i-1][from][id] != $me[id]){
  17. $x=$stat[data][$i-1][id].' ';
  18. $y = fopen('cm_log','a');
  19. fwrite($y,$x);
  20. fclose($y);
  21. $bot=array('nomer','latah','biasa',);
  22. $robot=$bot[rand(0,count($bot)-1)];
  23. $s=$stat[data][$i-1][message];
  24. $gen=json_decode(auto('http://graph.facebook.com/'.$stat[data][$i-1][from][id].'?fields=gender'),true);
  25.  
  26. $message =$text[rand(0,count($text)-1)];
  27.  
  28. auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/likes?access_token='.$access_token.'&method=post');
  29. echo '<span style="color:#3b5998">'.$stat[data][$i-1][from][name].'</span> <span style="color:red">[SUKSES di LIKE]</span><hr/>';
  30. }
  31. }
  32. }
  33.  
  34. function auto($url){
  35. $curl = curl_init();
  36. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  37. curl_setopt($curl, CURLOPT_URL, $url);
  38. $ch = curl_exec($curl);
  39. curl_close($curl);
  40. return $ch;
  41. }
  42.  
  43. ?>
Advertisement
Add Comment
Please, Sign In to add comment