Skip to content

Commit

Permalink
feat: rm dependency on the old FB client
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyqu committed Nov 18, 2024
1 parent d6b005b commit acbf126
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions src/facebook/facebook_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from urllib.parse import parse_qs, urlparse

import dateutil.parser as dateparser
import facebook
import requests

from ..consts import ReportPeriod
Expand All @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions src/instagram/instagram_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from urllib.parse import parse_qs, urlparse

import dateutil.parser as dateparser
import facebook
import requests

from ..consts import ReportPeriod
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit acbf126

Please sign in to comment.