正在显示
2 个修改的文件
包含
13 行增加
和
3 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论