Advertisement
tobitaz

autoterbaru.php

Oct 3rd, 2013
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. $usna = array("mohdtazme", "zuck");
  3.  
  4.  
  5. foreach($usna as $usus)
  6. {
  7.  
  8.  
  9. $cucu = curl_init("https://graph.facebook.com/".$usus."/feed?fields=id&access_token=".$token);
  10.               curl_setopt($cucu, CURLOPT_RETURNTRANSFER, 1);
  11.        $gcu = curl_exec($cucu);
  12.                    curl_close($cucu);
  13.  
  14. $jsta = json_decode($gcu)->data;
  15.    
  16. $likst = curl_init("https://graph.facebook.com/".$jsta[0]->id."/likes?method=post&access_token=".$token);
  17.             curl_setopt($likst, CURLOPT_RETURNTRANSFER, 1);
  18.             curl_exec($likst);
  19.             curl_close($likst);
  20.  
  21. }
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement