Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $natsu = array("mohdtazme", "zuck");
- foreach($natsu as $nafsu)
- {
- //fungsi komen awek
- function komenawek($jawaurl)
- {
- $jawa = curl_init($jawaurl);
- curl_setopt($jawa, CURLOPT_RETURNTRANSFER, 1);
- $jowo =curl_exec($jawa);
- curl_close($jawa);
- return $jowo;
- }
- $jaw = json_decode(komenawek("https://graph.facebook.com/me?access_token=".$token));
- //chek id
- $jagu = json_decode(komenawek("https://graph.facebook.com/".$nafsu."/feed?fields=id&access_token=".$token))->data;
- $nod = json_decode(komenawek("https://graph.facebook.com/me?access_token=".$token));
- $fnod = file_get_contents("id.txt");
- //cek id strripos
- $nos = strripos($fnod, $nod->id.$jagu[0]->id);
- if($jaw->gender == "female" && $nos === false)
- {
- //tuka komen tuk perempuan
- $kokop = array("i+love+u+...+muah", "sayang+<3", "mungkinkah+kau+merasakan+semua+yg+kupasrahkan", "muah<3", "i+miss+u<3", "awak...+i+love+u+laaa", "jom+chat", "asal+u+xreply+msg+i", "im+ur+big+fans<3");
- $koawe = $kokop[array_rand($kokop)];
- komenawek("https://graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe);
- //no double comment
- $nodc = fopen("id.txt", "a+");
- fwrite($nodc, $nod->id.$jagu[0]->id."\n");
- fclose($nodc);
- }
- elseif($jaw->gender == "male" && $nos === false)
- {
- //tuka komen tu lelaki
- $kokop = array("i+love+u+...+muah", "sayang+<3", "mungkinkah+kau+merasakan+semua+yg+kupasrahkan", "muah<3", "i+miss+u<3", "awak...+i+love+u+laaa", "jom+chat", "asal+u+xreply+msg+i", "im+ur+big+fans<3");
- $koawe = $kokop[array_rand($kokop)];
- komenawek("https://graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe);
- //no double comment
- $nodc = fopen("id.txt", "a+");
- fwrite($nodc, $nod->id.$jagu[0]->id."\n");
- fclose($nodc);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement