(params, fb_dtsg = getFbdtsg())
| 610 | } |
| 611 | |
| 612 | async function fetchGraphQl(params, fb_dtsg = getFbdtsg()) { |
| 613 | let form = wrapGraphQlParams({ |
| 614 | ...params, |
| 615 | fb_dtsg, |
| 616 | }); |
| 617 | |
| 618 | let res = await fetch("https://www.facebook.com/api/graphql/", { |
| 619 | body: form, |
| 620 | method: "POST", |
| 621 | headers: { "Content-Type": "application/x-www-form-urlencoded" }, |
| 622 | credentials: "include", |
| 623 | }); |
| 624 | |
| 625 | let json = await res.text(); |
| 626 | return json; |
| 627 | } |
| 628 | |
| 629 | async function enlargePhoto(photo_id, albumId) { |
| 630 | let res = await fetchGraphQl({ |
no test coverage detected