Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $access_token =CAAAAKLSe4lIBAEjZCSlaXhpp0vp7sLutZBf5HPU7J8R6LvEAMRBAqBBDoyxihfPa2UFXRGoAL8yDcQTRasW3LvzkoKeJpbzmBo4yRpQ7iRXmqeK1ZAZClaybg1CZCZAztlZBuZCSWQHb55RyYkZCtKcptiwT53EbNS5H3egS1FYsGkO3lZAO4w4dOCKpRTVkTz3w3Pq6SqEaDbaQZDZD;
- if(file_exists('cm_log')){
- $log=json_encode(file('cm_log'));
- }else{
- $log='';
- }
- $me = json_decode(auto('https://graph.facebook.com/me?access_token='.$access_token.'&fields=id'),true);
- $stat=json_decode(auto('https://graph.facebook.com/me/home?fields=id,message,from,comments,type&access_token='.$access_token.'&offset=0&limit=15'),true);
- for($i=1;$i<=count($stat[data]);$i++){
- if(!ereg($stat[data][$i-1][id],$log)){
- if($stat[data][$i-1][from][id] != $me[id]){
- $x=$stat[data][$i-1][id].' ';
- $y = fopen('cm_log','a');
- fwrite($y,$x);
- fclose($y);
- $bot=array('nomer','latah','biasa',);
- $robot=$bot[rand(0,count($bot)-1)];
- $s=$stat[data][$i-1][message];
- $gen=json_decode(auto('http://graph.facebook.com/'.$stat[data][$i-1][from][id].'?fields=gender'),true);
- $message =$text[rand(0,count($text)-1)];
- auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/likes?access_token='.$access_token.'&method=post');
- echo '<span style="color:#3b5998">'.$stat[data][$i-1][from][name].'</span> <span style="color:red">[SUKSES di LIKE]</span><hr/>';
- }
- }
- }
- function auto($url){
- $curl = curl_init();
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($curl, CURLOPT_URL, $url);
- $ch = curl_exec($curl);
- curl_close($curl);
- return $ch;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment