I have the following simple example in Python 2.7 (using the Anaconda distribution) for accessing data using the Facebook Graph API:
import facebook
token = 'mytoken'
graph = facebook.GraphAPI(token)
profile = graph.get_object("me")
friends = graph.get_connections("me", "friends")
friend_list = [friend['name'] for friend in friends['data']]
print friend_list
Initially I got the 'module' object has no attribute 'GraphAPI' and noticed that the prepopulated list of methods for facebook was basically empty. This led me to take the advice of this post and uninstall facebook and install facebook-sdk. This worked in the sense that now GraphAPI shows up in the prepopulated list, but I still get the following error:
AttributeError: 'module' object has no attribute 'GraphAPI'
Is there another solution to this problem I might be overlooking?