Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function run_like() {
- var run = casper_like(""); // Nhap token vao day
- }
- function casper_like(token) {
- var type = "LOVE";
- var t = new Date();
- t = t.getTime();
- t = t+"";
- t = t.substring(0,6);
- 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')";
- fql = encodeURIComponent(fql);
- fql = "https://api.facebook.com/method/fql.query?query="+fql+"&limit=100&format=json&access_token=";
- if(token&&token != "") {
- var me = get_cr_url("https://graph.beta.facebook.com/me?access_token="+token);
- if(me&&me.id) {
- fql = get_cr_url(fql+token);
- if(fql&&fql.length!=0) {
- for(x in fql) {
- 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 ) {
- var cek_daftar = 'https://graph.beta.facebook.com/v2.9/' +fql[x].post_id+ '/reactions?type=' +type+ '&method=post&access_token=';
- cek_daftar = get_cr_url(cek_daftar+token);
- var can_cr = 1;
- Utilities.sleep(2000);
- }
- }
- }
- }
- }
- }
- function get_cr_url(almt){
- FetchApp.fetch(almt);
- var json_cr = JSON.parse(url_cr.getContentText());
- return json_cr;
- }var url_cr = Url
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement