Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $token = ['', //
- '', //
- ];
- $limitnf=5; // 20 Status ? NewFeed 1 L?n
- for($j =0;$j<count($token); $j++){
- $puaru=json_decode(puaru('https://graph.facebook.com/me/home?fields=id,message,created_time,from,comments,type&access_token='.$token[$j].'&offset=0&limit='.$limitnf.''),true);
- for($i=1;$i<=count($puaru[data]);$i++){
- set_time_limit(0);
- $camxuc= array('LOVE');
- $mess=$camxuc[rand(0,count($camxuc)-1)];
- echo puaru('https://graph.facebook.com/'.$puaru[data][$i-1][id].'/reactions?type='.$mess.'&method=post&access_token='.$token[$j].'');
- }
- }
- function puaru($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;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement