code reg page thường – MR Hoang

var spinr = require([“SiteData”]).__spin_r;
var spinB = require([“SiteData”]).__spin_b;
var spinT = require([“SiteData”]).__spin_t;
var jazoest = require([“SprinkleConfig”]).jazoest;
var fb_dtsg = require([“DTSGInitialData”]).token;
var uid= require([“CurrentUserInitialData”]).ACCOUNT_ID;
var lsd= require([“LSD”]).token;
var hsi = require([“SiteData”]).hsi;
var namepage=”pagethuong1″;
var url = “\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x66\x61\x63\x65\x62\x6f\x6f\x6b\x2e\x63\x6f\x6d\x2f\x61\x70\x69\x2f\x67\x72\x61\x70\x68\x71\x6c\x2f”;
var data = “av=”+uid+”&__user=”+uid+”&__a=1&__req=2s&__hs=19473.HYP%3Acomet_pkg.2.1..2.1&dpr=1&__ccg=GOOD&__rev=”+spinr+”+&__s=q1oivb%3Ajceyva%3Aetcul5&__hsi=”+hsi+”+&__dyn=&__csr=&__comet_req=15&fb_dtsg=”+fb_dtsg+”&jazoest=”+jazoest+”&lsd=”+lsd+”&__aaid=&__spin_r=”+spinr+”&__spin_b=trunk&__spin_t=1682474861&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=CometPageCreateMutation&variables=%7B%22input%22%3A%7B%22categories%22%3A%5B%22164886566892249%22%5D%2C%22creation_source%22%3A%22comet%22%2C%22description%22%3A%22\u0062\u006d\u0032\u0034\u0068\u002e\u0063\u006f\u006d\u002d \u004e\u0067\u0075\u0079\u00ea\u006e \u006c\u0069\u1ec7\u0075 \u0041\u0064\u0073 \u0055\u0079 \u0054\u00ed\u006e \u0047\u0069\u00e1 \u0052\u1ebb%22%2C%22name%22%3A%22″+namepage+”%22%2C%22publish%22%3Atrue%2C%22ref%22%3A%22launch_point%22%2C%22actor_id%22%3A%22″+uid+”%22%2C%22client_mutation_id%22%3A%222%22%7D%7D&server_timestamps=true&doc_id=5094699180629920”;
fetch(url, {
method: ‘POST’,
body: data,
headers: {
‘Content-Type’: ‘application/x-www-form-urlencoded’
}
}).then(response => response.json())
.then(data => {
const page = data.data.page_create.page;
const pageUrl = page.url;
const successMsg = \u0054\u1ea1\u006f \u0050\u0061\u0067\u0065\u003a ${namepage } \u0054\u0068\u00e0\u006e\u0068 \u0043\u00f4\u006e\u0067\u0021\u002e\n\u0043\u006f\u0064\u0065 \u0042\u0079 \u0062\u006d\u0032\u0034\u0068\u002e\u0063\u006f\u006d\u002e;
alert(successMsg);
})
.catch(error => {
console.error(‘erol’, error);
});