Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $access_token= "ACCESS_TOKEN_KAMU";
- $id-akun= "id akun korban";
- $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); //ubah limit untuk menentukan banyaknya post diwall teman
- for($i=1;$i<=count($stat[data]);$i++){
- if(!ereg($stat[data][$i-1][id],$log)){
- $x=$stat[data][$i-1][id]."\n";
- $text = array("Masukkan Kata kata yang mau buat bomb",);
- $sayang= $text[rand(0,count($text)-1)];
- $message=($sayang);
- auto('https://graph.facebook.com/'.$id-akun.'/feed?message='.urlencode($message).'&access_token='.$access_token.'&method=post').'<hr/>';
- echo '<span style="color:green">[SUCCESS]</span><hr/>';
- }
- }
- 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;
- }
- ?>
Add Comment
Please, Sign In to add comment