DedsecID

Auto Sundul FB

Mar 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <title>Auto Sunduler Postingan FB</title>
  2. <?php
  3.  
  4.  
  5. $access_token= "";
  6.  
  7. $idpost= "";
  8.  
  9. $text = "Up Gan";
  10.  
  11. $stat = json_decode(auto('https://graph.facebook.com/v1.0/'.$idpost.'/comments?access_token='.$access_token.'&message='.urlencode($text).'&method=post&offset=0&limit=1'),true);
  12. for($i=1;$i<=count($stat);$i++){
  13. if(!ereg($stat[id],$log)){
  14. $x=$stat[id]."\n--BATAS--\n";
  15. $y=fopen('SundulTerozzz.txt','a');
  16. fwrite($y,$x);
  17. fclose($y);
  18. }
  19. }
  20. function auto($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. ?>
Add Comment
Please, Sign In to add comment