facebook / facebook-python-business-sdk

Python SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
1.28k stars 631 forks source link

empty report for "fb_page_daily_2nd_degree_impression.py" #522

Closed STANAPI closed 5 years ago

STANAPI commented 5 years ago

When running fb_page_daily_2nd_degree_impression.py, we are always getting empty reports.

_The Facebook API Call encountered the following exception: Traceback (most recent call last): File "C:\STB\STAN_MG_API\Facebook\fb_page_daily_2nd_degree_impression.py", line 100, in extract column6: str(i['value']['user post']), KeyError: 'user post'

It seems the API could not handle the response. My guess is the response for 'user post' is empty or NULL. Could anyone suggest how to debug it?

jingping2015 commented 5 years ago

Did you try to use our latest package pip install facebook_business ? what's the content of fb_page_daily_2nd_degree_impression.py ?

jingping2015 commented 5 years ago

We've been unable to reproduce this bug, and are unable to investigate further. We are closing the issue for now, if you identify a test case we can use to reproduce your bug feel free to re-open.