Fetch Facebook ID with PyFacebook, "Session key is required"
Posted
by ensnare
on Stack Overflow
See other posts from Stack Overflow
or by ensnare
Published on 2010-04-25T21:58:52Z
Indexed on
2010/04/25
22:03 UTC
Read the original article
Hit count: 554
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.
© Stack Overflow or respective owner