John Delmark Aguilar

Delmark - Profiling
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Facebook Auto Like [Google Script]

View previous topic View next topic Go down 
AuthorMessage
dElmARk
Admin
Admin
avatar

Posts : 92
Join date : 09/04/2012

PostSubject: Facebook Auto Like [Google Script]   Sun Mar 02, 2014 7:24 am

Code:
var config={
 token:"Token Here"
};
 
getpost();
function getpost(){
  var response = UrlFetchApp.fetch("https://graph.facebook.com/me/home?limit=9&access_token=" + config.token);
  var b=Utilities.jsonParse(response.getContentText());
  like(b.data[0].id);  like(b.data[1].id);  like(b.data[2].id);
  like(b.data[3].id);  like(b.data[4].id);  like(b.data[5].id);
  like(b.data[6].id);  like(b.data[7].id);  like(b.data[8].id);
 
}

function like(pids){
  var response = UrlFetchApp.fetch("https://graph.facebook.com/" + pids + "/likes?access_token=" + config.token +"&method=POST");
  return response;
}
Back to top Go down
View user profile http://delmark.meabout.com
 
Facebook Auto Like [Google Script]
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
John Delmark Aguilar :: Public Forum :: Lobby/Social :: Social Community Sites-
Jump to: