通过Facebook Connect FBML按钮登录后,是否可以通过PyFacebook检索和使用会话详细信息?我是否可以像使用Python触发登录一样使用auth.getSession()?通过PyFacebook访问Facebook Connect FBML cookie?
基本上我试图找出是否有可能在下面的例子来代替阶段直至并包括的raw_input():
import facebook
API_KEY = 'xxx'
SECRET_KEY = 'xxx'
facebook = facebook.Facebook(API_KEY, SECRET_KEY)
facebook.auth.createToken()
facebook.login()
# Login to the window, then press enter
print 'After logging in, press enter...'
raw_input()
# This is where FBML button should get me
facebook.auth.getSession()
print 'Session Key: ', facebook.session_key
print 'Your UID: ', facebook.uid
没有具体的Django或Zope的问题或答案,所以我删除了这些标签为雅。 – 2009-10-23 17:50:23