sns-sdks / python-facebook

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

ImportError: cannot import name 'GraphAPI' from 'pyfacebook' #183

Closed achampagne1 closed 2 years ago

achampagne1 commented 2 years ago

I tried running this small snippet of code: from pyfacebook import GraphAPI api = GraphAPI(access_token="token") but I got the error: ImportError: cannot import name 'GraphAPI' from 'pyfacebook' (/home/ec2-user/.local/lib/python3.7/site-packages/pyfacebook/__init__.py) I am using amazon web services EC2. What is the solution to this?

achampagne1 commented 2 years ago

I deleted the package and redownloaded, and it worked

tauseedzaman commented 2 years ago

i got the same issue. is there any other solution to this