Advertisement
EkoAisyah

status.php

Oct 12th, 2012
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2.  
  3. $access_token = "AAAsSu*****";
  4. $url = "https://graph.facebook.com/me/feed?method=POST";
  5.  
  6. $linx = "http://xxx.16mb.com/cek.php";
  7.  
  8. $status = file_get_contents($linx);
  9.  
  10. $ch = curl_init();
  11. $attachment = array( 'access_token' => $access_token,
  12. 'message' => $status,
  13. );
  14.  
  15. curl_setopt($ch, CURLOPT_URL,$url);
  16. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  17. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  18. curl_setopt($ch, CURLOPT_POST, true);
  19. curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
  20. $result= curl_exec($ch);
  21.  
  22. curl_close ($ch);
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement