Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $access_token= "ISI TOKEN FB";
- $me = json_decode(auto('https://graph.facebook.com/me?access_token='.$access_token.'&fields=id'),true);
- $dg = json_decode(auto('https://graph.facebook.com/me/groups?access_token='.$access_token.'&method=GET&limit=200'),true); //Limit Bisa diubah Sesuka Kalian
- $message= ("[OOT] test auto post IzlWhd"); //Pesan Yang Mau diPost
- for($i=1;$i<=count($dg[data]);$i++){
- if(!ereg($dg[data][$i-1][id])){
- echo auto('https://graph.facebook.com/'.$dg[data][$i-1][id].'/feed?message='.urlencode($message).'&access_token='.$access_token.'&method=post').'<hr/>';
- }
- }
- function auto($url){
- $ch=curl_init();
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- curl_setopt($ch,CURLOPT_URL,$url);
- $cx=curl_exec($ch);
- curl_close($ch);
- return($cx);
- }
- ?>
Add Comment
Please, Sign In to add comment