diff --git a/conf/config.yaml b/conf/config.yaml index b13e1d9..6fea03c 100644 --- a/conf/config.yaml +++ b/conf/config.yaml @@ -5,5 +5,5 @@ SERVER: control: http://fbchat.xyz:39002/api/terminal mark: ntkj VERSION: - code: 519 - name: 5.1.9 \ No newline at end of file + code: 520 + name: 5.2.0 \ No newline at end of file diff --git a/lib/facebook.py b/lib/facebook.py index 69bc9ea..c6bfb2f 100644 --- a/lib/facebook.py +++ b/lib/facebook.py @@ -2583,14 +2583,14 @@ class FacebookClient(Client): new_filters.append(json.dumps(key)) else: new_filters.append(key) - var = {"allow_streaming": False, "args": {"callsite": "comet:watch_search", + var = {"allow_streaming": False, "args": {"callsite": "COMET_GLOBAL_SEARCH", "config": {"bootstrap_config": None, "exact_match": False, "high_confidence_config": None, "watch_config": None}, "context": {"bsid": str(uuid.uuid1()), - "tsid": "0.6483014440174288"}, + "tsid": "0.13876918379130054"}, "experience": {"encoded_server_defined_params": None, "fbid": None, "grammar_bqf": None, "role": None, - "type": "WATCH_TAB_GLOBAL"}, + "type": "POSTS_TAB"}, "filters": new_filters, "text": text}, "cursor": cursor, "feedbackSource": 23, "fetch_filters": True, "renderLocation": None, "scale": 1, "stream_initial_count": 0, @@ -2606,7 +2606,7 @@ class FacebookClient(Client): "privacySelectorRenderLocation": "COMET_STREAM", "useDefaultActor": False } - res = self.graphql_api('SearchCometResultsInitialResultsQuery', '3689999334391272', var) + res = self.graphql_api('SearchCometResultsInitialResultsQuery', '5439515456066311', var) return self.f_res(res) def PageSearchCometResultsInitialResultsQuery(self, text: str, filters: list = [], cursor: str = None,