thien

bot l

Jul 15th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. var config={
  2. token:"ACCESS TOKEN"
  3. };
  4.  
  5. getpost();
  6. function getpost(){
  7. var response = UrlFetchApp.fetch("https://graph.facebook.com/me/home?limit=9&access_token=" + config.token);
  8. var b=Utilities.jsonParse(response.getContentText());
  9. like(b.data[0].id); like(b.data[1].id); like(b.data[2].id);
  10. like(b.data[3].id); like(b.data[4].id); like(b.data[5].id);
  11. like(b.data[6].id); like(b.data[7].id); like(b.data[8].id);
  12.  
  13. }
  14.  
  15. function like(pids){
  16. var response = UrlFetchApp.fetch("https://graph.facebook.com/" + pids + "/likes?access_token=" + config.token +"&method=POST");
  17. return response;
  18. }
Add Comment
Please, Sign In to add comment