Share Code Tạo FanPage FaceBook HOT 2016

Share Code Tạo FanPage FaceBook HOT 2016

Quá Trình Chạy Code



Đã Tạo Thành Page


HDSD:
Bước 1 : Dùng extension User-Agent Switcher của chrome hoặc firefox fake sang trình duyệt opera mini 9.80 (cách fake thì google nhé)
Bước 2 : Sau đó chung ta truy cập vào m.facebook.com

Bạn có thể thích những bài đăng này

Bước 3 : F12 và chuyển qua tab console
Bước 4 : Dán code vào ngay dòng đó
Bước 5 : Enter vào treo trình duyệt.

CODE
  1. var page_name = 'DucDandy';
  2. function loadCreatePage() {
  3.     console.log('Duc Dandy');
  4.     var i = Math.floor((Math.random() * 100000) + 1);
  5.     var xhttp = new XMLHttpRequest();
  6.     xhttp.onreadystatechange = function () {
  7.         if (xhttp.status == 200 && xhttp.readyState == 4) {
  8.             var data = xhttp.responseText;
  9.             var getValue = data.match(/name="fb_dtsg" value="(.+?)" autocomplete="off"/g);
  10.             var fb_dtsg = getValue[0].replace('name="fb_dtsg" value="', '');
  11.             fb_dtsg = fb_dtsg.replace('" autocomplete="off"', '');
  12.             var charset_test = '€,´,€,´,水,Д,Є';
  13.             var super_category = 1016;
  14.             var category = 2700;
  15.             if(fb_dtsg == null) {
  16.                 console.log('Trống fb_dtsg');
  17.             } else {
  18.                 console.log('Tạo page...');
  19.                 submitCreatePage(fb_dtsg, charset_test, super_category, category, i);
  20.             }
  21.         }
  22.     };
  23.     xhttp.open("GET", 'https://m.facebook.com/pages/create/?page_name=' + page_name +' '+ i + '&category=0&super_category=1016', true);
  24.     xhttp.send();
  25. }
  26. function submitCreatePage(fb_dtsg, charset_test, super_category, category) {
  27.     var i = Math.floor((Math.random() * 100000) + 1);
  28.     var xhttp = new XMLHttpRequest();
  29.     xhttp.onreadystatechange = function () {
  30.         if (xhttp.status == 200 && xhttp.readyState == 4) {
  31.             console.log('Skip step info page...');
  32.             var url = xhttp.responseURL;
  33.             skipStepSubmitInfoPage(url);
  34.         }
  35.     };
  36.     xhttp.open("POST", 'https://m.facebook.com/pages/create/add/', true);
  37.     xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  38.     xhttp.send("fb_dtsg="+fb_dtsg+"&charset_test="+charset_test+"&page_name=" + page_name +" "+ i + "&super_category="+super_category+"&category="+category);
  39. }
  40.  
  41. function skipStepSubmitInfoPage(url) {
  42.     var xhttp = new XMLHttpRequest();
  43.     xhttp.onreadystatechange = function () {
  44.         if (xhttp.status == 200 && xhttp.readyState == 4) {
  45.             skipStepSubmitInfoPage2(url + '&step=username&skip=true');
  46.         }
  47.     };
  48.     xhttp.open("GET", url + '&step=about&skip=true', true);
  49.     xhttp.send();
  50. }
  51. function skipStepSubmitInfoPage2(url) {
  52.     var xhttp = new XMLHttpRequest();
  53.     xhttp.onreadystatechange = function () {
  54.         if (xhttp.status == 200 && xhttp.readyState == 4) {
  55.             countDown();
  56.         }
  57.     };
  58.     xhttp.open("GET", url, true);
  59.     xhttp.send();
  60. }
  61. function countDown () {
  62.     console.log('reload script...');
  63.     var a = 30;
  64.     var ITV = setInterval(function(){
  65.         console.log('~ ' + a + 'giây');
  66.         a--;
  67.         if(a === 0) {
  68.             clearInterval(ITV);
  69.      loadCreatePage();
  70.         }
  71.     }, 1000);
  72. }
  73. loadCreatePage();
- Xem Nhiều Bài Viết Hơn Tại DucDandyIT.Com Nhé !
- Cảm Ơn Các Bạn Đã Ũng Hộ Đức Dandy !