Advertisement
RieqyNS13

Untitled

May 1st, 2014
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <?php
  2. $token="token mu cok"
  3. function curl($url){
  4.     $ch = curl_init();
  5.     curl_setopt($ch, CURLOPT_URL, $url);
  6.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  7.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  8.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  9.     curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Linux i686) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.52 Safari/536.5");
  10.     $exec = curl_exec($ch);
  11.     curl_close($ch);
  12.     return $exec;
  13. }
  14. $gay = curl("https://graph.facebook.com/me/home?fields=id&limit=15&access_token=".$token);
  15. $data = json_decode($gay);
  16. foreach($data->data as $mbuh){
  17.     echo curl("https://graph.facebook.com/".$mbuh->id."/likes?&method=POST&access_token=".$token);
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement