Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>Abdul Bot - Cyber45.id</title>
- <?php
- // Author : Abdul Muttaqin
- // Contact : http://fb.me/basmal106
- // instagram.com/fdci.abdul
- //
- // Blog : http://fdci-indonesia.web.id
- // YT. : Youtube.com/InsideHeartz
- function auto($url){
- $data = curl_init();
- curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($data, CURLOPT_URL, $url);
- $total = curl_exec($data);
- curl_close($data);
- return $total;
- }
- $access_token= "EAAAAAYsX7TsBAPyCVeTyda8bC0a3IyNlEdwxu2PfDZBgMV7nVS5fFm9RAfIQhdlgp7eyiAUuVPzIX3zJuVZBfvFDkK7tTMnlfGSUEC4CXmXJEYukFEIN9E8DLHIMzXnb8eW5ruLkP1VJ1CsCoFKx1eKQBHnCIVf2VAFJm5K6fSXvg63AYphnYjKIAo5ZBJRMUqbiTeRqbfBeq14wKZBK"; //AccessToken Elu gan
- if(file_exists('CommentPhotos')){ $log=json_encode(file('CommentPhotos')); }else{ $log=''; }
- $stat=json_decode(auto('https://graph.facebook.com/me/home?fields=id,message,from,comments,type&access_token='.$access_token.'&offset=0&limit=50'),true);
- for($i=1;$i<=count($stat[data]);$i++){
- if(!ereg($stat[data][$i-1][id],$log)){
- $x=$stat[data][$i-1][id]."\n";
- $y=fopen('CommentPhotos','a');
- fwrite($y,$x);
- fclose($y);
- $text = array("ur words",
- "ur words2",
- "ur words3"); //Change With Your Own Words
- $gambar = array("res.cloudinary.com/christekh/image/upload/w_700/l_text:Verdana_20_bold_italic:ABDUL%20BOT,g_north,y_25,co_rgb:F9583C/l_text:Midnight-Valentine.ttf_100:Abdul%20Muttaqin,co_rgb:ffffff/pexels-photo-341858_hx5cva.jpg",
- "encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTPYBMR4t_yyZH3lnsuY0lCLbmWz37qlTHmU5TPoyg8m9dEPimA",); // Don't use http or www
- $message1 = $text[rand(0,count($text)-1)];
- $gambar1 = $gambar[rand(0,count($gambar)-1)];
- $message=($message1);
- $gambar=($gambar1);
- auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/comments?attachment_url='.$gambar.'&access_token='.$access_token.'&message='.urlencode($message).'&method=post');
- auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/likes?method=post&access_token='.$access_token);
- echo '<span style="color:black">'.$stat[data][$i-1][from][name].'<br>Status: '.$stat[data][$i-1][message].'</span> <span style="color:red">Succes</span><hr/>';
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement