w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Python Facebook SDK: 'module' object has no attribute 'GraphAPI'

If you are using Ubuntu or Debian, Just execute the following commands to get this working

sudo pip uninstall facebook
sudo pip uninstall facebook-sdk
sudo pip install facebook-sdk

For other operating systems, just remove facebook and facebook-sdk packages and install only facebook-sdk.

And then execute that program, it will work. Looks like facebook module is a dummy module. What we actually need is facebook-sdk only.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.