Fetch Facebook ID with PyFacebook, "Session key is required"
- by ensnare
I'm trying to fetch the logged in user's ID with Facebook + PyFacebook via:
#Establish connection to Facebook via API
f = Facebook(config['app_conf']['pyfacebook.apikey'],
config['app_conf']['pyfacebook.secret'])
#Get the current Facebook ID
facebook_id = f.users.getLoggedInUser()
But I keep getting the error:
FacebookError: Error 453: A session key is required for calling this method
What am I doing wrong?
Thanks.