Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $access_token = "AAAsSu*****";
- $url = "https://graph.facebook.com/me/feed?method=POST";
- $linx = "http://xxx.16mb.com/cek.php";
- $status = file_get_contents($linx);
- $ch = curl_init();
- $attachment = array( 'access_token' => $access_token,
- 'message' => $status,
- );
- 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