Advertisement
RieqyNS13

flood komen

Jul 6th, 2014
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2. $token = "**********";
  3. $postID = "******";
  4. $jumlah = 50;
  5. $message = "HOMO";
  6. for($a=0; $a<$jumlah; $a++){
  7.     $gay = curl("https://graph.facebook.com/".$postID."/comments?access_token=".$token."&method=post&message=".$message);
  8.     $dec = json_decode($gay);
  9.     if(isset($dec->id))echo "sukses\n";
  10.     else echo "error\n";
  11. }
  12. function curl($url){
  13.     $ch = curl_init();
  14.     curl_setopt($ch, CURLOPT_URL, $url);
  15.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  16.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  17.     $exec = curl_exec($ch);
  18.     curl_close($ch);
  19.     return $exec;
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement