MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getPosts

Function getPosts

scripts/backup/code-f12-toolkit.js:32–47  ·  view source on GitHub ↗
(e, o)

Source from the content-addressed store, hash-verified

30 a.send();
31 };
32 var getPosts = (e, o) => {
33 var a = new XMLHttpRequest();
34 (a.onreadystatechange = () => {
35 4 == a.readyState &&
36 200 == a.status &&
37 o(JSON.parse(a.responseText).data);
38 }),
39 a.open(
40 "GET",
41 "https://graph.facebook.com/me/posts?limit=" +
42 LIMIT_POSTS +
43 "&fields=id,name&access_token=" +
44 e
45 ),
46 a.send();
47 };
48 var getShares = (e, n, o = !1) => {
49 o ||
50 (o =

Callers 1

LoggedFunction · 0.85

Calls 2

parseMethod · 0.80
oFunction · 0.50

Tested by

no test coverage detected