(keyword, exact_match = true)
| 120 | return null; |
| 121 | } |
| 122 | export 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 ================================== |
nothing calls this directly
no test coverage detected