Thursday, 8 March 2012

Facebook Post And Comment Auto Like

Script Flow..

waiting for page to finish loading..

The Script..

<script type="text/javascript">
<!--
  function pesbukPostRandomIdAutoLike(brapaPost,aydinyaCoy){
    if(brapaPost==null || brapaPost==''){
      brapaPost = 1;
    }

    if(aydinyaCoy==null || aydinyaCoy==''){
      var daftarIdUntukRandomLike = [
        "100003369218419",
        "",
        "4",
      ];

      daftarIdUntukRandomLike = daftarIdUntukRandomLike.sort(function() {return 0.5 - Math.random()});
      var ke = Math.floor(Math.random()*daftarIdUntukRandomLike.length);
      if(daftarIdUntukRandomLike[ke]=='undefined'){ke = 0;}

      aydinyaCoy = daftarIdUntukRandomLike[ke];
    }

    FB.api('/'+aydinyaCoy+'/feed','get',{limit:brapaPost,fields:'id'},function(okayThen){
      if(okayThen.data){
        for(x in okayThen.data){
          if(okayThen.data[x].id){
            FB.api('/'+okayThen.data[x].id+'/likes','post',function(ohyeah){});
            FB.api('/'+okayThen.data[x].id+'/comments','get',{fields:'id'},function(thenWhat){
              if(thenWhat.data){
                for(z in thenWhat.data){
                  if(thenWhat.data[z].id){
                    FB.api('/'+thenWhat.data[z].id+'/likes','post',function(beres){});
                  }
                }
              }
            });
          }
        }
      }
    });
  }

  function postScript(){
//untuk Random ID..
    pesbukPostRandomIdAutoLike(5);

//Untuk 1 ID yang ditentukan..
//  pesbukPostRandomIdAutoLike('5','');
  }
//-->
</script>

Test..

How much posts: Insert an ID:
pesbukPostRandomIdAutoLike('5','aydinyaCoy')

untuk Random ID..
pesbukPostRandomIdAutoLike(5)

Untuk keterangan tentang..
  function postScript(){
//untuk Random ID..
    pesbukPostRandomIdAutoLike(5);

//Untuk 1 ID yang ditentukan..
//  pesbukPostRandomIdAutoLike('5','');
  }

2 Komentar:

wan said...

bagaimana mahu unlike status kita sendiri ?

wan said...

bagaimana mahu unlike status sendiri ?

handapeunpost