def facebook():
 channel = s3db.msg_facebook_login()
 if (not channel):
  redirect(URL(f='user', args=request.args, vars=get_vars))
 from s3oauth import FaceBookAccount
 auth.settings.login_form = FaceBookAccount(channel)
 form = auth()
 return {'form': form}

def facebook ( ) : channel = s3db . msg_facebook_login ( ) if ( not channel ) : redirect ( URL ( f = 'user' , args = request . args , vars = get_vars ) ) from s3oauth import FaceBookAccount auth . settings . login_form = FaceBookAccount ( channel ) form = auth ( ) return { 'form' : form }
login using facebook .