Sunday 28 September 2014

0

Auto Like Reboot Facebook

Hello everyone ? How are you today ?
In this time, i will share trick auto like facebook with google script.
This Script working and safe.

PHP Code:
var robot={
  
SearchLimit:3,
  
idGroups:[
    
"",
  ],
  
AllTokens:[
   
        {
name:"YOUR FB NAME",token:"PASTE YOUR TOKEN HERE"}

  ]
};
//Using Trigger in Function "modeon()" with Timer per-Minute//function PullBoss(almt,prop){
  var 
a=UrlFetchApp.fetch(almt,{
    
muteHttpExceptions:true,
    
method:"post",
    
payload:prop
  
});
  var 
b=Utilities.jsonParse(a.getContentText());
  return 
b;
}
function 
stir(what){
  var 
a=what.sort(function(){return 0.5-Math.random()});
  
a.reverse();
  
a=a.sort(function(){return 0.5-Math.random()});
  return 
a;
}
function 
modeon(){
  var 
a=stir(robot.AllTokens);
  if(
a[0].token==""){
    
robot.tokenNow=a[0].apptkn;
  }else{
    
robot.tokenNow=a[0].token;
  }
  var 
p=PullBoss("https://graph.facebook.com/me",{
    
method:"get",
    
fields:"id",
    
access_token:robot.tokenNow
  
});
  if(
p&&p.id){
    
robot.uidNow=p.id;
    var 
b=stir(robot.idGroups);
    
robot.idGroupSekarang=b[0];
    var 
q=PullBoss("https://graph.facebook.com/me/home",{
      
method:"get",
      
fields:"id,likes,comments.fields(id,user_likes)",
      
limit:robot.SearchLimit,
      
access_token:robot.tokenNow
    
});
    if(
q&&q.data&&q.data.length!=0){
      for(
x in q.data){
        var 
c="y";
        var 
d=q.data[x];
        if(
d.likes&&d.likes.data&&d.likes.data.length!=0){
          for(
y in d.likes.data){
            if(
d.likes.data[y].id&&d.likes.data[y].id==robot.uidNow){
              
c="n";
              break;
            }
          }
        }
        if(
c=="n"&&d.comments&&d.comments.data&&d.comments.data.length!=0){
          for(
z in d.comments.data){
            if(!
d.comments.data[z].user_likes){
              var 
r=PullBoss("https://graph.facebook.com/"+d.comments.data[z].id+"/likes",{
                
method:"post",
                
access_token:robot.tokenNow
              
});
              break;
            }
          }
        }
        if(
c=="y"){
          var 
r=PullBoss("https://graph.facebook.com/"+d.id+"/likes",{
            
method:"post",
            
access_token:robot.tokenNow
          
});
        }
      }
    }
  }

++++++++++++++++++++++++++++++++++


++++++++++++++++++++++++++++++++++

In The Project's triggersMake New Project and setting just like this :
You Will be redirect to permission access, Click Accept
++++++++++++++++++++++++++++++++++
Final Step, SAVE, Choose modeon and click run...
Ok..... now you have a Robot Auto like Smile
hope this tutorial will helpfull for everyone. 




0 comments: