Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
1.1 kB
2
Indexable
Never
let token = require("DTSGInitialData").token || document.querySelector('[name="fb_dtsg"]').value,
    uid = require("CurrentUserInitialData").USER_ID || [removed].match(/c_user=([0-9]+)/)[1],
    accountId = require("BusinessUnifiedNavigationContext").adAccountID;
fetch("https://secure.facebook.com/ajax/payment/token_proxy.php?tpe=/api/graphql/", {
headers: {
    "content-type": "application/x-www-form-urlencoded"
},
referrer: "https://www.facebook.com/",
body: `av=${uid}&payment_dev_cycle=prod&__user=${uid}&_a=1&__dyn=&__req=19&__beoa©&__PC-PHASED:powereditor_pkg&dpr=1.5&__ccg=EXCELLENT&__rev=1002523221&__5&__hsi=6&__comet_req=0&fb_dtsg=${token}&jazoest=22058&__spin_r-10025232218_spin_b=trunk&__spin_t=&fb_api_caller_class=RelayModern&fb_api_req_friendly_name-BillingPrepayUtilsCreateStoredBalanceMutation&variables={"input": {"client_mutation_id":"3","actor_id":"${uid}","logging_data": {"logging_counter":21,"logging_id":""},"payment_account_id":"${accountId}"}} &servertimestamps=true&doc_id=3138742652811181`,
method: "POST",
mode: "cors",
credentials: "include"
}).then(e => { console.log("Done");
})