daily pastebin goal
2%
SHARE
TWEET

AutoLike.php

a guest May 16th, 2016 226 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3.  * Created By Koceng
  4.  * Modified by Rizky Rahmansyah
  5. */
  6. function auto($url){
  7. $data = curl_init();
  8. curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  9. curl_setopt($data, CURLOPT_URL, $url);
  10. $hasil = curl_exec($data);
  11. curl_close($data);
  12. return $hasil;
  13. }
  14. $access_token= "EAAAA......";
  15. if(file_exists('C3')){ $log=json_encode(file('KupasTrik_Log')); }else{ $log=''; }
  16. $stat=json_decode(auto('https://graph.beta.facebook.com/me/home?fields=id,from&limit=15&access_token='.$access_token),true);
  17. for($i=1;$i<=count($stat[data]);$i++){
  18. if(!ereg($stat[data][$i-1][id],$log)){
  19. $x=$stat[data][$i-1][id]."\n";
  20. $y=fopen('KupasTrik_Log','a');
  21. fwrite($y,$x);
  22. fclose($y);
  23. auto('https://graph.beta.facebook.com/'.$stat[data][$i-1][id].'/likes?method=post&access_token='.$access_token);
  24. echo '<span style="color:#0E0101">'.$stat[data][$i-1][from][name].'</span> <span style="color:green">[SUCCESS]</span><hr/>';
  25. }
  26. }
  27. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top