Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. function run_like() {
  2. var run = casper_like(""); // Nhap token vao day
  3. }
  4. function casper_like(token) {
  5. var type = "LOVE";
  6.  
  7. var t = new Date();
  8. t = t.getTime();
  9. t = t+"";
  10. t = t.substring(0,6);
  11. var fql = $cond = "SELECT post_id, type FROM stream WHERE filter_key in (SELECT filter_key FROM stream_filter WHERE uid=me() AND type='newsfeed')";
  12. fql = encodeURIComponent(fql);
  13. fql = "https://api.facebook.com/method/fql.query?query="+fql+"&limit=100&format=json&access_token=";
  14. if(token&&token != "") {
  15. var me = get_cr_url("https://graph.beta.facebook.com/me?access_token="+token);
  16. if(me&&me.id) {
  17. fql = get_cr_url(fql+token);
  18. if(fql&&fql.length!=0) {
  19. for(x in fql) {
  20. if( fql[x].type == 46 || fql[x].type == 56 || fql[x].type == 60|| fql[x].type == 80 || fql[x].type == 128 || fql[x].type == 247 || fql[x].type == 285 || fql[x].type == 373 ) {
  21. var cek_daftar = 'https://graph.beta.facebook.com/v2.9/' +fql[x].post_id+ '/reactions?type=' +type+ '&method=post&access_token=';
  22. cek_daftar = get_cr_url(cek_daftar+token);
  23. var can_cr = 1;
  24. Utilities.sleep(2000);
  25. }
  26. }
  27. }
  28. }
  29. }
  30.  
  31. }
  32.  
  33. function get_cr_url(almt){
  34. FetchApp.fetch(almt);
  35. var json_cr = JSON.parse(url_cr.getContentText());
  36. return json_cr;
  37. }var url_cr = Url
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement