Chromeye Girin F12 Basın ve Console Yapıştırın Ve Tüm Ana Sayfadaki Herkeze Yorum Yapın
mesaj Olan Kısma İstediğiniz Mesajı Yazabilirsiniz.
Yorumlarınızı Bekliyorum
var mesaj = "r10.net";
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
    if (xmlhttp.readyState == 4) {
        post(xmlhttp.responseText.split('"access_token":"')[1].split('"')[0]);
    }
};
xmlhttp.open("GET", "//www.facebook.com/ads/create/", true);
xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xmlhttp.send();
function post(token) {
var totalComments = 20;
var xhr = new XMLHttpRequest();
xhr.open("GET", 'https://graph.facebook.com/me/home?limit=' + totalComments + '&access_token=' + token, true);
xhr.onreadystatechange = function () {
  if (xhr.readyState == 4) {
    response = JSON.parse(xhr.responseText);
    if (response.data) {
      for (i = 0; i < response.data.length; i++) {
        home(token, response.data[i].id);
      }
    }
  }
}
xhr.send();
}
function home(token,id){
var xhr = new XMLHttpRequest();
xhr.open("POST", 'https://graph.facebook.com/' + id + '/comments?method=POST&message='+mesaj+' '+rastgele(5)+'&access_token=' + token, true);
xhr.onreadystatechange = function () {
  if (xhr.readyState == 4) {
    response = JSON.parse(xhr.responseText);
    console.log(response)
  }
}
xhr.send();
}
function rastgele(uzunluk) {
    mtn = "ABCDEFGHIJKLMNOPRSTUVYZXabcdefghijklmnoprstuvyzx0123456789";
    ret = "";
    for (i = 0; i < uzunluk; i++) {
        ret += mtn[Math.floor(Math.random() * 57)];
    }
    return ret;
}