作者 陈俊学

5.1.7

1.增加查询帐号广告偏好接口
@@ -5,5 +5,5 @@ SERVER: @@ -5,5 +5,5 @@ SERVER:
5 control: http://fbchat.xyz:39002/api/terminal 5 control: http://fbchat.xyz:39002/api/terminal
6 mark: ntkj 6 mark: ntkj
7 VERSION: 7 VERSION:
8 - code: 516  
9 - name: 5.1.6  
  8 + code: 517
  9 + name: 5.1.7
@@ -2150,6 +2150,14 @@ class FacebookClient(Client): @@ -2150,6 +2150,14 @@ class FacebookClient(Client):
2150 # except: 2150 # except:
2151 # return {'success': False, "data": res['errors'][0]['description']} 2151 # return {'success': False, "data": res['errors'][0]['description']}
2152 2152
  2153 + def AdPreferencesProfileRelationshipStatusRowQuery(self):
  2154 + """
  2155 + 查询广告偏好
  2156 + """
  2157 + var = {}
  2158 + res = self.graphql_api('AdPreferencesInterestCategoriesPageQuery', '2916949545027630', var)
  2159 + return self.f_res(res)
  2160 +
2153 def FriendingCometFriendRequestsPanelPaginationQuery(self, cursor: str = "", details: bool = False): 2161 def FriendingCometFriendRequestsPanelPaginationQuery(self, cursor: str = "", details: bool = False):
2154 """获取好友请求""" 2162 """获取好友请求"""
2155 var = {"count": 10, "cursor": cursor, "scale": 2} 2163 var = {"count": 10, "cursor": cursor, "scale": 2}
@@ -3228,7 +3236,9 @@ class FacebookClient(Client): @@ -3228,7 +3236,9 @@ class FacebookClient(Client):
3228 # 帖子是否可以点赞 3236 # 帖子是否可以点赞
3229 try: 3237 try:
3230 is_react = \ 3238 is_react = \
3231 - edge['node']['comet_sections']['feedback']['story']['feedback_context']['feedback_target_with_context']['comet_ufi_summary_and_actions_renderer']['feedback']['can_viewer_react'] 3239 + edge['node']['comet_sections']['feedback']['story']['feedback_context'][
  3240 + 'feedback_target_with_context']['comet_ufi_summary_and_actions_renderer']['feedback'][
  3241 + 'can_viewer_react']
3232 except: 3242 except:
3233 is_react = None 3243 is_react = None
3234 node['text'] = text 3244 node['text'] = text