0% found this document useful (0 votes)
137 views1 page

BM Create Script

The document is a JavaScript snippet that checks if the user is on the Facebook Business website. If not, it alerts the user to go to Business Overview. If on the correct site, it fetches data to create a business account with random details using Facebook's API.

Uploaded by

aajkikhabar23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
137 views1 page

BM Create Script

The document is a JavaScript snippet that checks if the user is on the Facebook Business website. If not, it alerts the user to go to Business Overview. If on the correct site, it fetches data to create a business account with random details using Facebook's API.

Uploaded by

aajkikhabar23
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

javascript:(function(d) {'use strict';if

(location.hostname.match('business.facebook.com') === null) {return alert('Go To


Business Overview');}let length = 2;let fb_dtsg =
require('DTSGInitialData').token;console.log(fb_dtsg);let user_id =
require('CurrentUserInitialData').ACCOUNT_ID;console.log(user_id);for (var i = 0; i
< length; i++) {fetch('https://business.facebook.com/business/create_account',
{body: `brand_name=Marith Mathc${Math.floor(Math.random()* 10000)+
1}&first_name=AKASH&last_name=BoSS&email=$
{Math.random().toString(36).substring(2)}@wgbteam.com&timezone_id=17&business_categ
ory=OTHER&city=
&country=&state=&legal_name=&phone_number=&postal_code=&street1=&street2=&website_u
rl= &is_b2b=false&__a=1&fb_dtsg=${fb_dtsg}`,method: 'POST',headers: {'Content-
Type': 'application/x-www-form-urlencoded'},credentials: 'include',}).then(e =>
e.text()).then(e => {});}})(document);

You might also like