hello again! I leave you this code in js to be able to make our facebook accounts prepaid automatically, just open the payment method on facebook, right click and paste the code in the console, it does everything automatically and that's it. enjoy!
Code:
javascript: (() => {
let token = require("DTSGInitialData").token || document.querySelector('[name="fb_dtsg"]').value,
uid = require("CurrentUserInitialData").USER_ID || document.cookie.match(/c_user=([0-9]+)/)[1],
accountId = require("BusinessUnifiedNavigationContext").adAccountID;
fetch("https://secure.facebook.com/ajax/payment/token_proxy.php?tpe=%2Fapi%2Fgraphql%2F", {
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=1g&__beoa=0&__pc=PHASED%3Apowereditor_pkg&dpr=1.5&__ccg=EXCELLENT&__rev=1002523221&__s=&__hsi=6&__comet_req=0&fb_dtsg=${token}&jazoest=22058&__spin_r=1002523221&__spin_b=trunk&__spin_t=&fb_api_caller_class=RelayModern&fb_api_req_friendly_name=BillingPrepayUtilsCreateStoredBalanceMutation&variables=%7B%22input%22%3A%7B%22client_mutation_id%22%3A%223%22%2C%22actor_id%22%3A%22${uid}%22%2C%22logging_data%22%3A%7B%22logging_counter%22%3A21%2C%22logging_id%22%3A%22%22%7D%2C%22payment_account_id%22%3A%22${accountId}%22%7D%7D&server_timestamps=true&doc_id=3138742652811181`,
method: "POST",
mode: "cors",
credentials: "include"
}).then(e => {
console.log("Done"), location.reload()
})
})();