Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function tobitaz($alamat)
- {
- $jawa = curl_init("https://".$alamat);
- curl_setopt($jawa, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($jawa, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.6 (KHTML, like Gecko) Chrome/16.0.897.0 Safari/535.6');
- $jowo =curl_exec($jawa);
- curl_close($jawa);
- return $jowo;
- }
- $token = "letaktokenkokatsini";
- //chek id
- $jadu = json_decode(tobitaz("graph.facebook.com/me/home?fields=id&access_token=".$token))->data;
- $nod = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token));
- $fnod = file_get_contents("id.txt");
- //cek id strripos
- foreach($jadu as $jagu)
- {
- $nos = strripos($fnod, $jagu->id);
- if($nos === false)
- {
- $kokop = array("jom guna noelectron .mobie .in", "jom try noelectron .mobie .in", "hai jom guna noelectron .mobie .in", "try jap noelectron .mobie .in");
- $koawe = $kokop[array_rand($kokop)];
- tobitaz("graph.facebook.com/".$jagu->id."/comments?access_token=".$token."&method=post&message=".$koawe);
- //no double comment
- $nodc = fopen("id.txt", "a+");
- fwrite($nodc, $jagu->id."\n");
- fclose($nodc);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement