Advertisement
Guest User

eee

a guest
Oct 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2. $token = ['', //
  3. '', //
  4.  
  5. ];
  6.  
  7. $limitnf=5; // 20 Status ? NewFeed 1 L?n
  8.  
  9. for($j =0;$j<count($token); $j++){
  10. $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);
  11. for($i=1;$i<=count($puaru[data]);$i++){
  12. set_time_limit(0);
  13. $camxuc= array('LOVE');
  14. $mess=$camxuc[rand(0,count($camxuc)-1)];
  15. echo puaru('https://graph.facebook.com/'.$puaru[data][$i-1][id].'/reactions?type='.$mess.'&method=post&access_token='.$token[$j].'');
  16. }
  17. }
  18.  
  19.  
  20. function puaru($url){
  21. $data = curl_init();
  22. curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  23. curl_setopt($data, CURLOPT_URL, $url);
  24. $hasil = curl_exec($data);
  25. curl_close($data);
  26. return $hasil;
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement