Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $access_token = "TOKEN FACEBOOK HTC";
- $url = "https://graph.facebook.com/me/feed?method=POST";
- if(!empty($_GET['x'])){
- $status = $_GET['x'];
- } else {
- $kata = file("status.txt");
- $isine = $kata[array_rand($kata)];
- $statuse= $isine;
- }
- $ch = curl_init();
- $attachment = array( 'access_token' => $access_token,
- 'message' => $statuse,
- );
- curl_setopt($ch, CURLOPT_URL,$url);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
- $result= curl_exec($ch);
- curl_close ($ch);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement