def facebook_login(): return facebook.authorize( callback=url_for( '.facebook_authorized', next=request.referrer or None, _external=True ) )
def facebook_login(): return facebook.authorize( callback=url_for( 'main.facebook_authorized', next= None, _external=True ) )