def facebook_login(request, redirect_field_name="next",
                        redirect_to_session_key="redirect_to"):
    
    access = OAuthAccess()
    token = None
    if hasattr(request, "session"):
        logger.debug("la_facebook.views.facebook_login: request has session")
        request.session[redirect_to_session_key] = request.GET.get(redirect_field_name)
    return HttpResponseRedirect(access.authorization_url(token))
1. access OAuth
dataset/ETHPy150Open pydanny/django-la-facebook/la_facebook/views.py/facebook_login