How can I create an iMacros that autopost on facebook? -


i have facebook page business. want able write , save posts of 1 day in 10 minutes , lunch imacro post them 1 one every 30 minutes . searched in google , found out imacros easiest way.

how can create imacros autopost on facebook ? should start ? thank you.

   var contents = null, images = null, groups = null; var codedefault1="tab closeallothers\n set !extract_test_popup no\n set !timeout_page 10\n set !errorignore yes\n set !timeout_step 0.1\n"; var codedefault2="set !extract_test_popup no\n set !timeout_page 10\n set !errorignore yes\n set !timeout_step 0.1\n"; var wm             = components.classes["@mozilla.org/appshell/window-mediator;1"].getservice(components.interfaces.nsiwindowmediator); var window         = wm.getmostrecentwindow("navigator:browser"); function random(a,b){var c= b-a; return math.floor((math.random()*c)+a);} function playpost(groups,contents,images,time1,time2){     for(key in groups){         if(typeof(groups[key].href)!="undefined"){             if(key==0) code="tab open\n tab t=2\n";             else code="";             code+="url goto=https://m.facebook.com/groups/"+gup('group_id',groups[key].href)+"\n";             if(images.length==0){                 code+="tag pos=1 type=textarea attr=id:* content="+contents[random(0,contents.length-1)].value.replace(/ /g, "<sp>").replace(/\n/g, "<br>")+"\n";                 code+="tag pos=1 type=input:submit  attr=name:view_post\n";                 code+="wait seconds="+random(10,35)+"\n";             }else{                 code+="tag pos=1 type=input:submit  attr=name:lgc_view_photo\n";                 for(key2 in images){                     if(!isnan(key2)){                         code+="tag pos=1 type=input:file attr=name:file"+(parseint(key2)+parseint(1))+" content="+images[key2].getattribute('data').replace(/ /g, "<sp>")+"\n";                     }                 }                 code+="tag pos=1 type=textarea attr=id:* content="+contents[random(0,contents.length-1)].value.replace(/ /g, "<sp>").replace(/\n/g, "<br>")+"\n";                 code+="tag pos=1 type=input:submit attr=name:photo_upload\n";                 code+="tag pos=1 type=input:submit attr=name:done\n";                 code+="wait seconds="+random(time1,time2)+"\n";             }             iimplaycode(codedefault2+code);         }      } }  function gup( name, url ) {   if (!url) url = location.href   name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");   var regexs = "[\\?&]"+name+"=([^&#]*)";   var regex = new regexp( regexs );   var results = regex.exec( url );   return results == null ? null : results[1]; }  function getparents(el) {     var parents = [];     var p = el.parentnode;     while (p !== null) {         var o = p;         parents.push(o);         p = o.parentnode;     }     return parents; } iimplaycode(codedefault1+"url goto=http://sozi.vn\n tab open\n tab t=2\n url goto=https://m.facebook.com/settings/notifications/groups/\n "); window.document.queryselectorall("#header")[0].innerhtml='<div class="contentap"><div class="ctap"><textarea style="width:98%" placeholder="content" class="ap"></textarea></div></div>      <div class="btcta" style="float:right;"><button class="act">add content</button><button class="rmct">remove content</button></div>         <div class="imgap"><input style="width:98%"  type="file" class="upfbgr" data="" > <br><input style="width:98%"  type="file" class="upfbgr" data="" > <br><input style="width:98%"  type="file" class="upfbgr" data="" > <br></div>      <br>  time random <input type="text" value="20" style="width:50px;" name="sd">-<input type="text" value="50" style="width:50px;" name="ss">     <div class="btcta" style="float:right;"><button class="editgroup">edit group</button><button class="run">runpost</button></div>'    window.document.queryselectorall('.rmct')[0].addeventlistener("click", function(){     window.document.queryselectorall('.ctap')[window.document.queryselectorall('.ctap').length-1].remove(); });  window.document.queryselectorall('.act')[0].addeventlistener("click", function(){     if(window.document.queryselectorall('.ctap').length<3){         window.document.queryselectorall('.contentap')[0].innerhtml = window.document.queryselectorall('.contentap')[0].innerhtml + '<div class="ctap"><textarea style="width:98%" placeholder="content" class="ap"></textarea></div></div>';     } }); for(i in window.document.queryselectorall('input[type="file"]') )      if(!isnan(i))          window.document.queryselectorall('input[type="file"]')[i].addeventlistener("change", function(){this.setattribute('data',this.value);});  var edit=0;      window.document.queryselectorall('.editgroup')[0].addeventlistener("click", function(){     if(edit==0){         var gr = window.document.queryselectorall("h3");         for(i in gr){             if(!isnan(i)){                 gr[i].innerhtml = gr[i].innerhtml +' <button class="rmgr"> delete</button> ';                 window.document.queryselectorall("h3 button")[i].addeventlistener("click", function(){                     getparents(this)[1].remove();                 });              }            }          edit=1;      } }); window.document.queryselectorall('.run')[0].addeventlistener("click", function(){     contents = window.document.queryselectorall(".ap");     if(contents[0].value!=""){         images = window.document.queryselectorall(".upfbgr:not([data=\"\"])");         groups = window.document.queryselectorall("h3 a");         time1 = window.document.queryselectorall("input[name='sd']")[0].value;         time2 = window.document.queryselectorall("input[name='ss']")[0].value;         playpost(groups,contents,images,time1,time2);     }else{         contents[0].style.border="1px solid #c82828";     }  }); iimplay('code:wait seconds=9999'); 

auto post group facebook
+ select group
+ random content post
+ random time post
video youtube : https://www.youtube.com/watch?v=88buro3vvnc


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -