|
@@ -750,7 +750,7 @@ class FacebookClient(Client): |
|
@@ -750,7 +750,7 @@ class FacebookClient(Client): |
|
750
|
|
750
|
|
|
751
|
def FriendingCometPYMKPanelPaginationQuery(self, cursor: str = '', details: bool = False):
|
751
|
def FriendingCometPYMKPanelPaginationQuery(self, cursor: str = '', details: bool = False):
|
|
752
|
"""获取推荐好友新"""
|
752
|
"""获取推荐好友新"""
|
|
753
|
- variables = {"count": 30, "location": "FRIENDS_CENTER", "scale": 2}
|
753
|
+ variables = {"count": 30, "location": "FRIENDS_CENTER", "scale": 1}
|
|
754
|
if cursor:
|
754
|
if cursor:
|
|
755
|
variables.update({'cursor': cursor})
|
755
|
variables.update({'cursor': cursor})
|
|
756
|
res = self.graphql_api('FriendingCometPYMKPanelPaginationQuery', '3364519643627555', variables)
|
756
|
res = self.graphql_api('FriendingCometPYMKPanelPaginationQuery', '3364519643627555', variables)
|
|
@@ -2142,7 +2142,7 @@ class FacebookClient(Client): |
|
@@ -2142,7 +2142,7 @@ class FacebookClient(Client): |
|
2142
|
# search 搜索好友取消
|
2142
|
# search 搜索好友取消
|
|
2143
|
var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": source,
|
2143
|
var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": source,
|
|
2144
|
"actor_id": self.uid, "client_mutation_id": self.get_client_mutation_id()},
|
2144
|
"actor_id": self.uid, "client_mutation_id": self.get_client_mutation_id()},
|
|
2145
|
- "scale": 2}
|
2145
|
+ "scale": 1}
|
|
2146
|
res = self.graphql_api('FriendingCometFriendRequestCancelMutation', '3226051994092510', var)
|
2146
|
res = self.graphql_api('FriendingCometFriendRequestCancelMutation', '3226051994092510', var)
|
|
2147
|
return self.f_res(res)
|
2147
|
return self.f_res(res)
|
|
2148
|
# try:
|
2148
|
# try:
|
|
@@ -2201,7 +2201,7 @@ class FacebookClient(Client): |
|
@@ -2201,7 +2201,7 @@ class FacebookClient(Client): |
|
2201
|
var = {
|
2201
|
var = {
|
|
2202
|
"input": {"friend_requestee_ids": ids,
|
2202
|
"input": {"friend_requestee_ids": ids,
|
|
2203
|
"refs": [None], "source": source, "actor_id": self.uid,
|
2203
|
"refs": [None], "source": source, "actor_id": self.uid,
|
|
2204
|
- "client_mutation_id": self.get_client_mutation_id()}, "scale": 2}
|
2204
|
+ "client_mutation_id": self.get_client_mutation_id()}, "scale": 1}
|
|
2205
|
if source in source_list.keys():
|
2205
|
if source in source_list.keys():
|
|
2206
|
var['input']['people_you_may_know_location'] = source_list[source]
|
2206
|
var['input']['people_you_may_know_location'] = source_list[source]
|
|
2207
|
# proxy = '161.117.81.181:24000'
|
2207
|
# proxy = '161.117.81.181:24000'
|
|
@@ -2210,7 +2210,7 @@ class FacebookClient(Client): |
|
@@ -2210,7 +2210,7 @@ class FacebookClient(Client): |
|
2210
|
# "https": "http://%(proxy)s" % {'proxy': proxy}
|
2210
|
# "https": "http://%(proxy)s" % {'proxy': proxy}
|
|
2211
|
# }
|
2211
|
# }
|
|
2212
|
# res = self._post_graphql_api_proxy('FriendingCometFriendRequestSendMutation', '3384847541611194', var,proxies)
|
2212
|
# res = self._post_graphql_api_proxy('FriendingCometFriendRequestSendMutation', '3384847541611194', var,proxies)
|
|
2213
|
- res = self.graphql_api('FriendingCometFriendRequestSendMutation', '3423207681122092', var)
|
2213
|
+ res = self.graphql_api('FriendingCometFriendRequestSendMutation', '5115554325182722', var)
|
|
2214
|
res = self.res_deal(res)
|
2214
|
res = self.res_deal(res)
|
|
2215
|
try:
|
2215
|
try:
|
|
2216
|
# 数据太大需要处理简化
|
2216
|
# 数据太大需要处理简化
|
|
@@ -4217,9 +4217,9 @@ class FacebookClient(Client): |
|
@@ -4217,9 +4217,9 @@ class FacebookClient(Client): |
|
4217
|
'server_timestamps': True,
|
4217
|
'server_timestamps': True,
|
|
4218
|
'doc_id': doc_id,
|
4218
|
'doc_id': doc_id,
|
|
4219
|
'dpr': 2,
|
4219
|
'dpr': 2,
|
|
4220
|
- 'fb_api_analytics_tags': ['qpl_active_flow_ids=30605361'],
|
|
|
|
4221
|
- '__csr': 'gtYh4RfqflcneQyiiPsgIvkRbGCLLiyd9khiQVtaGWHVkFUzyGllmGhlYzGjC8J4h6J4rJGcGXyaBAGiaBiDFaHF4zaqmF5ByrypKinariK9LAK9AAC8WKVGxih5Hz4EjyF9agG8y8hCGaxq8UyXGexa6bxuuLh8oyECmp5zVEhwVDxeqVoK4pWiz9-dzopDw_nK9Axi1JBxe5Esx52rSuUW2Sax528twNAwAwIFogg9E5m9hUswRw-wwz9oS324ongfo4K1RU0bJ804zGfwl80pKAwywrpomwOzoeo114cwmEdUkwNzEdbzpm0jRG1T4KcgCmsE2hG6A7u09Uo0BS0um3y1bw',
|
|
|
|
4222
|
- '__dyn': '7AzHxqU5a5Q2m3mbG2KnFw9uu2i5U4e0yoW3q322aewXwnEbotwp8O2S1DwUx609vCxS320om78-0BE88427Uy11xmfz83WwgEcHzoaEaoG0Boy1PwBgK7qxS18wc61uwPyoox22K263ifK6E7e58jwGzEaE766Fobrxu5Elxm3y2K5ojUlDw-wUws8SEmwHwLw'
|
4220
|
+ # 'fb_api_analytics_tags': ['qpl_active_flow_ids=30605361'],
|
|
|
|
4221
|
+ '__csr': 'gacan6hcr2spifn2fiuD6insIOkj9uPiRl9YYRR7jsDYPXIINabmnbFlKJKAyu_ahsCVHHbSA_kADFsx2d4FiKWGmFKBKDKWhrlaHFaiAmWXThqKrHy9i6Vi4CKWXh27wwCALBVbdluB-8JUyhfiK8hUCaHghJBxnzoBehaF8F6BzbLDiDGeuexlGQiVr-tabADAGUShy8gGq2CAuil4Z1ycxyCidK1aydoLgy9y_zpUS266AWKibhXVFEqp8C44UkxmqdG9K8QczUtgFpp8-i8xulVESGgde2Dx2V8CUjhQi68N1S5Au4Gwh9oN1-3uEkxqUK2K2C68jxmq6UK4U1mK09Gg05xa16w1Tdw7izU2Og9zwDG7EJU6e3u0f_g3uw8W1zwSyt1yfwOzoK2uF8oxpa8P3d0NwhErxRwXw4AAx98BF0j8eo2ywsEWdDg45wmET81bBw1lxw2lo0jSw',
|
|
|
|
4222
|
+ '__dyn': '7AzHxqU5a5Q2m3m8GEnxenFw9uu2i5U4e1NyUJ3odEc88EW0CEboG4E6icwJwpUe8hw2nVEtwMw65xOfwwwto88427Uy11xmfz83WwgEcHzoaEaoG0Boy1PwBgK7qxS18wc61axe3e9xy48aU8od8-UqwsUkxe2GewGwkUtxGm2SUnxq5olwUwHxm4-5pUfEdbws9o8oy5oO2-3a0BFo-'
|
|
4223
|
}
|
4223
|
}
|
|
4224
|
if is_mutli_json:
|
4224
|
if is_mutli_json:
|
|
4225
|
return self._post_multi('/api/graphql/', data)
|
4225
|
return self._post_multi('/api/graphql/', data)
|