diff --git a/examples/facebook/facebook.py b/examples/facebook/facebook.py index f1a479b..7ff0011 100644 --- a/examples/facebook/facebook.py +++ b/examples/facebook/facebook.py @@ -91,7 +91,7 @@ def authorized(): # the "me" response me = session.get('me').json() - User.get_or_create(me['username'], me['id']) + User.get_or_create(me['name'], me['id']) flash('Logged in as ' + me['name']) return redirect(url_for('index'))