|
...
|
...
|
@@ -1627,12 +1627,12 @@ class FacebookClient(Client): |
|
|
|
j = self._payload_post("/ajax/add_friend/action.php?dpr=1", data)
|
|
|
|
return j
|
|
|
|
|
|
|
|
def FriendingCometFriendRequestConfirmMutation(self, friend_requester_id, source):
|
|
|
|
def FriendingCometFriendRequestConfirmMutation(self, friend_requester_id):
|
|
|
|
"""同意好友请求"""
|
|
|
|
#TODO:source 多种未抓,文档
|
|
|
|
var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": source, "actor_id": self.uid,
|
|
|
|
var = {"input": {"cancelled_friend_requestee_id": friend_requester_id, "source": 'friends_tab',
|
|
|
|
"actor_id": self.uid,
|
|
|
|
"client_mutation_id": self.get_client_mutation_id()}, "scale": 2}
|
|
|
|
res = self.graphql_api('FriendingCometFriendRequestCancelMutation', '3226051994092510', var)
|
|
|
|
res = self.graphql_api('FriendingCometFriendRequestConfirmMutation', '3269854426413944', var)
|
|
|
|
try:
|
|
|
|
return {'success': True, 'data': res['data']}
|
|
|
|
except:
|
...
|
...
|
|