Selasa, 28 April 2015

Script Bot Like Only Facebook Beranda Versi PHP Script

<?php
function auto($url){
$data = curl_init();
curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($data, CURLOPT_URL, $url);
$hasil = curl_exec($data);
curl_close($data);
return $hasil;
}
$access_token= "ACCESS TOKEN KAMU";
if(file_exists('C3')){ $log=json_encode(file('KocengC3')); }else{ $log=''; }
$stat=json_decode(auto('https://graph.beta.facebook.com/me/home?fields=id,from&limit=15&access_token='.$access_token),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('KocengC3','a');
fwrite($y,$x);
fclose($y);
auto('https://graph.beta.facebook.com/'.$stat[data][$i-1][id].'/likes?method=post&access_token='.$access_token);
echo '<span style="color:#0E0101">'.$stat[data][$i-1][from][name].'</span> <span style="color:green">[SUCCESS]</span><hr/>';
}
}
?>

0 komentar:

Posting Komentar