(request, settings,next=None)
return fb
Used for redirecting the user to the Facebook
    login page if not already logged in.

    Usage:
      require_login(request,settings)
Used for redirecting the user to the Facebook
    login page if not already logged in.
Used for redirecting the user to the Facebook login page if not already logged in .
def require_login(request, settings,next=None):
    """
    Used for redirecting the user to the Facebook
    login page if not already logged in.

    Usage:
      require_login(request,settings)
    """
    if not request.facebook: add_instance(request,settings)
    fb = request.facebook
    if not fb.check_session(request):
        redirect(fb.get_login_url(next=next))
    return fb
def require_login ( request , settings , next = None ) : if not request . facebook : add_instance ( request , settings ) fb = request . facebook if not fb . check_session ( request ) : redirect ( fb . get_login_url ( next = next ) ) return fb