Advertisement
JakRapp

Bot Auto Update Status

Aug 17th, 2016
2,943
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.  
  3. $access_token = "TOKEN FACEBOOK HTC";
  4. $url = "https://graph.facebook.com/me/feed?method=POST";
  5.  
  6. if(!empty($_GET['x'])){
  7. $status = $_GET['x'];
  8. } else {
  9.  
  10. $kata = file("status.txt");
  11. $isine = $kata[array_rand($kata)];
  12. $statuse= $isine;
  13.  
  14. }
  15.  
  16.     $ch = curl_init();
  17.     $attachment =  array(   'access_token'  => $access_token,                      
  18.                         'message'          => $statuse,
  19.                     );
  20.  
  21.     curl_setopt($ch, CURLOPT_URL,$url);
  22.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  23.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  24.     curl_setopt($ch, CURLOPT_POST, true);
  25.     curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
  26.     $result= curl_exec($ch);
  27.  
  28.     curl_close ($ch);
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement