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

Function searchUser

scripts/fb_GLOBAL.js:122–160  ·  view source on GitHub ↗
(keyword, exact_match = true)

Source from the content-addressed store, hash-verified

120 return null;
121}
122export async function searchUser(keyword, exact_match = true) {
123 const res = await fetchGraphQl(
124 {
125 doc_id: 7561210460668291,
126 variables: {
127 count: 5,
128 allow_streaming: false,
129 args: {
130 callsite: "COMET_GLOBAL_SEARCH",
131 config: {
132 exact_match: exact_match,
133 high_confidence_config: null,
134 intercept_config: null,
135 sts_disambiguation: null,
136 watch_config: null,
137 },
138 experience: {
139 client_defined_experiences: [],
140 encoded_server_defined_params: null,
141 fbid: null,
142 type: "PEOPLE_TAB",
143 },
144 filters: [],
145 text: keyword,
146 },
147 cursor: null,
148 feedbackSource: 23,
149 fetch_filters: true,
150 renderLocation: "search_results_page",
151 scale: 2,
152 stream_initial_count: 0,
153 useDefaultActor: false,
154 },
155 },
156 await getFbdtsg()
157 );
158 const json = JSON.parse(res);
159 console.log(json);
160}
161
162// =============================================================================
163// =================================== Friend ==================================

Callers

nothing calls this directly

Calls 3

parseMethod · 0.80
fetchGraphQlFunction · 0.70
getFbdtsgFunction · 0.70

Tested by

no test coverage detected