Advertisement
AbdulMuttaqin

Facebook Bot Comment With Picture , Update

Oct 1st, 2018
1,998
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.09 KB | None | 0 0
  1. <title>Abdul Bot - Cyber45.id</title>
  2. <?php
  3.  
  4. // Author : Abdul Muttaqin
  5. // Contact : http://fb.me/basmal106
  6. // instagram.com/fdci.abdul
  7. //
  8. // Blog : http://fdci-indonesia.web.id
  9. // YT.    : Youtube.com/InsideHeartz
  10. function auto($url){
  11. $data = curl_init();
  12. curl_setopt($data, CURLOPT_RETURNTRANSFER, 1);
  13. curl_setopt($data, CURLOPT_URL, $url);
  14. $total = curl_exec($data);
  15. curl_close($data);
  16. return $total;
  17. }
  18. $access_token= "EAAAAAYsX7TsBAPyCVeTyda8bC0a3IyNlEdwxu2PfDZBgMV7nVS5fFm9RAfIQhdlgp7eyiAUuVPzIX3zJuVZBfvFDkK7tTMnlfGSUEC4CXmXJEYukFEIN9E8DLHIMzXnb8eW5ruLkP1VJ1CsCoFKx1eKQBHnCIVf2VAFJm5K6fSXvg63AYphnYjKIAo5ZBJRMUqbiTeRqbfBeq14wKZBK"; //AccessToken Elu gan
  19.  
  20. if(file_exists('CommentPhotos')){ $log=json_encode(file('CommentPhotos')); }else{ $log=''; }
  21. $stat=json_decode(auto('https://graph.facebook.com/me/home?fields=id,message,from,comments,type&access_token='.$access_token.'&offset=0&limit=50'),true);
  22. for($i=1;$i<=count($stat[data]);$i++){
  23. if(!ereg($stat[data][$i-1][id],$log)){
  24. $x=$stat[data][$i-1][id]."\n";
  25. $y=fopen('CommentPhotos','a');
  26. fwrite($y,$x);
  27. fclose($y);
  28.  
  29. $text = array("ur words",
  30. "ur words2",
  31. "ur words3"); //Change With Your Own Words
  32.  
  33. $gambar = array("res.cloudinary.com/christekh/image/upload/w_700/l_text:Verdana_20_bold_italic:ABDUL%20BOT,g_north,y_25,co_rgb:F9583C/l_text:Midnight-Valentine.ttf_100:Abdul%20Muttaqin,co_rgb:ffffff/pexels-photo-341858_hx5cva.jpg",
  34. "encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTPYBMR4t_yyZH3lnsuY0lCLbmWz37qlTHmU5TPoyg8m9dEPimA",); // Don't use http or www
  35.  
  36. $message1 = $text[rand(0,count($text)-1)];
  37. $gambar1 = $gambar[rand(0,count($gambar)-1)];
  38. $message=($message1);
  39. $gambar=($gambar1);
  40. auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/comments?attachment_url='.$gambar.'&access_token='.$access_token.'&message='.urlencode($message).'&method=post');
  41. auto('https://graph.facebook.com/'.$stat[data][$i-1][id].'/likes?method=post&access_token='.$access_token);
  42. echo '<span style="color:black">'.$stat[data][$i-1][from][name].'<br>Status: '.$stat[data][$i-1][message].'</span> <span style="color:red">Succes</span><hr/>';
  43. }
  44. }
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement