daily pastebin goal
43%
SHARE
TWEET

Auto Like FB

Berandal666 Mar 9th, 2017 397 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $token="TOKEN MU, Sat!";
  3. set_time_limit(0);
  4. function curl($url){
  5.     $ch = curl_init();
  6.     curl_setopt($ch, CURLOPT_URL, $url);
  7.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  8.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  9.     $exec = curl_exec($ch);
  10.     curl_close($ch);
  11.     return $exec;
  12. }
  13. $gay = curl("https://graph.facebook.com/v1.0/me/home?fields=message,picture,link,story,caption&limit=50&access_token=".$token);
  14. $data = json_decode($gay);
  15. if(isset($data->data))foreach($data->data as $mbuh)echo curl("https://graph.facebook.com/".$mbuh->id."/likes?&method=POST&access_token=".$token);
  16. elseif(isset($data->error))echo $data->error->message;
  17. else echo "error tidak diketahui";
  18. ?>
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