Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $idhumu = '1494762187434944'; // FBID (ID postingan)
- $komenhumu = 'Up beb, naik terus'; // You know what it this
- $access_token = file_get_contents('token.txt');
- /*
- Akses token bisa langsung gini
- $access_token = 'token ente';
- Tinggal ente cron job'in aja, atau kalo mau dipanggil manual juga terserah ente.
- */
- ##################
- ### END OF PETTING
- ### EH SETTING :'V
- ##################
- auto('https://graph.beta.facebook.com/'.$idhumu.'/comments?method=post&message='.urlencode($komenhumu).'&access_token='.$access_token);
- function auto($humu){
- $eek = curl_init();
- curl_setopt($eek, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($eek, CURLOPT_URL, $humu);
- $metu = curl_exec($eek);
- curl_close($eek);
- return $metu;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement