Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>Auto Sunduler Postingan FB</title>
- <?php
- $access_token= "";
- $idpost= "";
- $text = "Up Gan";
- $stat = json_decode(auto('https://graph.facebook.com/v1.0/'.$idpost.'/comments?access_token='.$access_token.'&message='.urlencode($text).'&method=post&offset=0&limit=1'),true);
- for($i=1;$i<=count($stat);$i++){
- if(!ereg($stat[id],$log)){
- $x=$stat[id]."\n--BATAS--\n";
- $y=fopen('SundulTerozzz.txt','a');
- fwrite($y,$x);
- fclose($y);
- }
- }
- function auto($url){
- $data = curl_init();
- curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($data, CURLOPT_URL, $url);
- $hasil = curl_exec($data);
- curl_close($data);
- return $hasil;
- }
- ?>
Add Comment
Please, Sign In to add comment