def facebook_authorize(): if not current_user.is_anonymous: return redirect(url_for('index')) oauth = FacebookSignIn() return oauth.authorize()