sns-sdks / python-facebook

A simple Python wrapper for facebook graph api :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-facebook/
322 stars 84 forks source link

error getting ads #240

Closed waliori closed 10 months ago

waliori commented 10 months ago

initially getting ads posts worked properly but recently last 10-20 days it does not work anymore (comments on ads posts works perfectly) i tried calling the api manually, it does work and return objects.

my workaround for now, i get ads posts using simple requests library then for each returned ads posts id i use the library normally to get comments.

thanks

File "/usr/src/app/src/tasks/facebook.py", line 476, in get_ads_comments posts = api.get_object( File "/usr/local/lib/python3.9/site-packages/pyfacebook/api/graph.py", line 276, in get_object resp = self._request( File "/usr/local/lib/python3.9/site-packages/pyfacebook/api/graph.py", line 212, in _request self.rate_limit.set_limit(headers) File "/usr/local/lib/python3.9/site-packages/pyfacebook/ratelimit.py", line 131, in set_limit ] = RateLimitHeader(**item) TypeError: init() got an unexpected keyword argument 'ads_api_access_tier'

MerleLiuKun commented 10 months ago

Sorry for late reply,

This may the different ratelimit, I will check this and fix it.