Chào các bạn,ở bài trước mình đã hướng dẫn các bạn cách sử dụng curl share tại đây
Nên bài viết này mình sẽ hướng dẫn cho các bạn cách tạo page facebook bằng code. ( Sử dụng trình duyệt cốc cốc hoặc chrome mới được )
Vào việc chính luôn:
Đầu tiên các bạn tải User Agent Swithcer để fake trình duyệt tại đây
Sau đó các bạn fake trình duyệt Opera Mini.
Các bạn vào mbasic.facebook.com
Ấn F12 -> chọn tab console rồi paste code sau vào:
page_name = 'Nguyễn Đăng Nhật';
function loadCreatePage() {
console.log('Lấy thông tin tạo page...');
var i = Math.floor((Math.random() * 100000) + 1);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
var data = xhttp.responseText;
var getValue = data.match(/name="fb_dtsg" value="(.+?)" autocomplete="off"/g);
var fb_dtsg = getValue[0].replace('name="fb_dtsg" value="', '');
fb_dtsg = fb_dtsg.replace('" autocomplete="off"', '');
var charset_test = '€,´,€,´,水,Д,Є';
var super_category = 1016;
var category = 2700;
if(fb_dtsg == null) {
console.log('Trống fb_dtsg');
} else {
console.log('Tạo page...');
submitCreatePage(fb_dtsg, charset_test, super_category, category, i);
}
}
};
xhttp.open("GET", 'https://m.facebook.com/pages/create/?page_name=' + page_name +' '+ i + '&category=0&super_category=1016', true);
xhttp.send();
}
function submitCreatePage(fb_dtsg, charset_test, super_category, category) {
var i = Math.floor((Math.random() * 100000) + 1);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
console.log('Skip step info page...');
var url = xhttp.responseURL;
skipStepSubmitInfoPage(url);
}
};
xhttp.open("POST", 'https://m.facebook.com/pages/create/add/', true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send("fb_dtsg="+fb_dtsg+"&charset_test="+charset_test+"&page_name=" + page_name +" "+ i + "&super_category="+super_category+"&category="+category);
}
function skipStepSubmitInfoPage(url) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
skipStepSubmitInfoPage2(url + '&step=username&skip=true');
}
};
xhttp.open("GET", url + '&step=about&skip=true', true);
xhttp.send();
}
function skipStepSubmitInfoPage2(url) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
countDown();
}
};
xhttp.open("GET", url, true);
xhttp.send();
}
function countDown () {
console.log('reload script...');
var a = 40;
var ITV = setInterval(function(){
console.log('~ ' + a + 'giây');
a--;
if(a === 0) {
clearInterval(ITV);
loadCreatePage();
}
}, 1000);
}
loadCreatePage();
function loadCreatePage() {
console.log('Lấy thông tin tạo page...');
var i = Math.floor((Math.random() * 100000) + 1);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
var data = xhttp.responseText;
var getValue = data.match(/name="fb_dtsg" value="(.+?)" autocomplete="off"/g);
var fb_dtsg = getValue[0].replace('name="fb_dtsg" value="', '');
fb_dtsg = fb_dtsg.replace('" autocomplete="off"', '');
var charset_test = '€,´,€,´,水,Д,Є';
var super_category = 1016;
var category = 2700;
if(fb_dtsg == null) {
console.log('Trống fb_dtsg');
} else {
console.log('Tạo page...');
submitCreatePage(fb_dtsg, charset_test, super_category, category, i);
}
}
};
xhttp.open("GET", 'https://m.facebook.com/pages/create/?page_name=' + page_name +' '+ i + '&category=0&super_category=1016', true);
xhttp.send();
}
function submitCreatePage(fb_dtsg, charset_test, super_category, category) {
var i = Math.floor((Math.random() * 100000) + 1);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
console.log('Skip step info page...');
var url = xhttp.responseURL;
skipStepSubmitInfoPage(url);
}
};
xhttp.open("POST", 'https://m.facebook.com/pages/create/add/', true);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send("fb_dtsg="+fb_dtsg+"&charset_test="+charset_test+"&page_name=" + page_name +" "+ i + "&super_category="+super_category+"&category="+category);
}
function skipStepSubmitInfoPage(url) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
skipStepSubmitInfoPage2(url + '&step=username&skip=true');
}
};
xhttp.open("GET", url + '&step=about&skip=true', true);
xhttp.send();
}
function skipStepSubmitInfoPage2(url) {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (xhttp.status == 200 && xhttp.readyState == 4) {
countDown();
}
};
xhttp.open("GET", url, true);
xhttp.send();
}
function countDown () {
console.log('reload script...');
var a = 40;
var ITV = setInterval(function(){
console.log('~ ' + a + 'giây');
a--;
if(a === 0) {
clearInterval(ITV);
loadCreatePage();
}
}, 1000);
}
loadCreatePage();
Các bạn có thể thay Nguyễn Đăng Nhật thành tên page mà các bạn thích tạo ( nó tự động có số ngẫu nhiên sau tên nhé ).Sau đó ấn enter để cho nó tự tạo thôi :D
Vì nhiều trường hợp nó tạo được ít page rồi lỗi nên các bạn nhớ làm đúng như trên nhé.
Xài hàng chùa thì đừng than vãn nhé :D
Mình có tổng hợp ít code tạo page tại đây hoặc đây (nếu có pass thì là nguyendangnhat.pro nhé)
Chúc các bạn thành công.
No comments