Error in facebook.graphApi and facebook-sdk uninstall

Viewed 26

At the beginning I did this

!pip3 install facebook-sdk

graph = facebook.graphApI(access_token=user_long_token, version=8.3)

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
C:\Users\PARAME~1\AppData\Local\Temp/ipykernel_8392/971760545.py in <module>
----> 1 graph = facebook.graphApI(access_token=user_long_token, version=8.3)

AttributeError: module 'facebook' has no attribute 'graphApI'

How to uninstall the facebook-sdk and resolve this attribute error?

1 Answers

To uninstall simply do pip uninstall <packagename> with regards to the error are you sure you are calling it the correct way? I mean methods are case sensitive ... I think the method is called facebook.GraphAPI() See reference

Related