Advertisement
janter13

Auto Up (Grup FB)

Sep 4th, 2014
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?php
  2. $idhumu = '1494762187434944'; // FBID (ID postingan)
  3. $komenhumu = 'Up beb, naik terus'; // You know what it this
  4. $access_token = file_get_contents('token.txt');
  5.  
  6. /*
  7. Akses token bisa langsung gini
  8. $access_token = 'token ente';
  9.  
  10. Tinggal ente cron job'in aja, atau kalo mau dipanggil manual juga terserah ente.
  11. */
  12. ##################
  13. ### END OF PETTING
  14. ### EH SETTING :'V
  15. ##################
  16.  
  17. auto('https://graph.beta.facebook.com/'.$idhumu.'/comments?method=post&message='.urlencode($komenhumu).'&access_token='.$access_token);
  18.  
  19. function auto($humu){
  20. $eek = curl_init();
  21. curl_setopt($eek, CURLOPT_RETURNTRANSFER, 1);
  22. curl_setopt($eek, CURLOPT_URL, $humu);
  23. $metu = curl_exec($eek);
  24. curl_close($eek);
  25. return $metu;
  26. }
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement