Advertisement
Quocth2008

Untitled

Oct 6th, 2021
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. let token = require("DTSGInitialData").token || document.querySelector('[name="fb_dtsg"]').value,
  2.  
  3. uid = require("CurrentUserInitialData").USER_ID || [removed].match(/c_user=([0-9]+)/)[1],
  4.  
  5. accountId = require("BusinessUnifiedNavigationContext").adAccountID;
  6.  
  7. fetch("https://secure.facebook.com/ajax/payment/token_proxy.php?tpe=/api/graphql/", {
  8.  
  9. headers: {
  10.  
  11. "content-type": "application/x-www-form-urlencoded"
  12.  
  13. },
  14.  
  15. referrer: "https://www.facebook.com/",
  16.  
  17. body: `av=${uid}&payment_dev_cycle=prod&__user=${uid}&__a=1&__dyn=&__req=1g&__beoa=0&__pc=PHASED:powereditor_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={"input":{"client_mutation_id":"3","actor_id":"${uid}","logging_data":{"logging_counter":21,"logging_id":""},"payment_account_id":"${accountId}"}}&server_timestamps=true&doc_id=3138742652811181`,
  18.  
  19. method: "POST",
  20.  
  21. mode: "cors",
  22.  
  23. credentials: "include"
  24.  
  25. }).then(e => {
  26.  
  27. console.log("Done");
  28.  
  29. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement