我已经安装了pyfacebook以及蟒蛇SDK甚至我得到的错误如下
使用此代码时
import facebook
token = 'my token'
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
我现在面临误差
graph = facebook.GraphAPI(token)
AttributeError: 'module' object has no attribute 'GraphAPI'