Advertisement
RieqyNS13

auto like

May 12th, 2014
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2. $token="token mu cok";
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement