From acbf12639ff234366b0731f1c24e23dd81d5c36f Mon Sep 17 00:00:00 2001 From: Alex Kulikov Date: Mon, 18 Nov 2024 18:24:09 +0000 Subject: [PATCH] feat: rm dependency on the old FB client --- requirements.txt | 1 - src/facebook/facebook_client.py | 2 -- src/instagram/instagram_client.py | 2 -- 3 files changed, 5 deletions(-) diff --git a/requirements.txt b/requirements.txt index 9511c0a..5cd836e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,7 +20,6 @@ deepdiff==4.3.2 Deprecated==1.2.14 distlib==0.3.6 distro==1.4.0 --e git+https://github.com/mobolic/facebook-sdk.git@ffd9980700be48964d6a6a61144edb1c3ea29cff#egg=facebook_sdk filelock==3.9.0 fonttools==4.38.0 freezegun==0.3.15 diff --git a/src/facebook/facebook_client.py b/src/facebook/facebook_client.py index 463128b..8fe6eef 100644 --- a/src/facebook/facebook_client.py +++ b/src/facebook/facebook_client.py @@ -5,7 +5,6 @@ from urllib.parse import parse_qs, urlparse import dateutil.parser as dateparser -import facebook import requests from ..consts import ReportPeriod @@ -32,7 +31,6 @@ def update_config(self, new_facebook_config: dict): self._update_from_config() def _update_from_config(self): - self._api_client = facebook.GraphAPI(self._facebook_config["token"], 7.0) self._page_id = self._facebook_config["page_id"] def _make_graph_api_call(self, uri: str, params: dict) -> dict: diff --git a/src/instagram/instagram_client.py b/src/instagram/instagram_client.py index c74ac37..a0cb30a 100644 --- a/src/instagram/instagram_client.py +++ b/src/instagram/instagram_client.py @@ -5,7 +5,6 @@ from urllib.parse import parse_qs, urlparse import dateutil.parser as dateparser -import facebook import requests from ..consts import ReportPeriod @@ -33,7 +32,6 @@ def update_config(self, new_facebook_config: dict): self._update_from_config() def _update_from_config(self): - self._api_client = facebook.GraphAPI(self._facebook_config["token"], 10.0) self._page_id = self._facebook_config.get("ig_page_id") def _make_graph_api_call(self, uri: str, params: dict) -> dict: