Module ImportFrom alias ImportFrom alias Import alias Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore BinOpAdd Str AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If NameLoad body Assign SubscriptStore NameLoad Index Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore ListLoad Str Str For NameStore NameLoad body Assign NameStore Call Call NameLoad NameLoad NameLoad NameLoad If NameLoad body Break Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad Call NameLoad NameLoad NameLoad If BoolOpAnd NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A django.conf settings django.contrib auth N/A facebook N/A datetime DjangoFacebook N/A object N/A N/A  Simple accessor object for the Facebook user.  __init__ N/A N/A self user N/A N/A N/A N/A self user user N/A N/A self uid N/A user N/A uid N/A N/A self graph N/A N/A facebook GraphAPI N/A user N/A access_token N/A N/A FacebookDebugCanvasMiddleware N/A object N/A N/A 
    Emulates signed_request behaviour to test your applications embedding.

    This should be a raw string as is sent from facebook to the server in the
    POST data, obtained by LiveHeaders, Firebug or similar. This should
    initialised before FacebookMiddleware.

     process_request N/A N/A self request N/A N/A N/A cp N/A N/A N/A request POST copy N/A N/A request POST cp N/A N/A N/A request POST N/A signed_request N/A settings FACEBOOK_DEBUG_SIGNEDREQ N/A None N/A N/A FacebookDebugCookieMiddleware N/A object N/A N/A 
    Sets an imaginary cookie to make it easy to work from a development
    environment.

    This should be a raw string as is sent from a browser to the server,
    obtained by LiveHeaders, Firebug or similar. The middleware takes care of
    naming the cookie correctly. This should initialised before
    FacebookMiddleware.

     process_request N/A N/A self request N/A N/A N/A cookie_name N/A fbs_ N/A settings FACEBOOK_APP_ID N/A N/A N/A request COOKIES N/A cookie_name N/A settings FACEBOOK_DEBUG_COOKIE N/A None N/A N/A FacebookDebugTokenMiddleware N/A object N/A N/A 
    Forces a specific access token to be used.

    This should be used instead of FacebookMiddleware. Make sure you have
    FACEBOOK_DEBUG_UID and FACEBOOK_DEBUG_TOKEN set in your configuration.

     process_request N/A N/A self request N/A N/A N/A user N/A uid access_token N/A settings FACEBOOK_DEBUG_UID N/A settings FACEBOOK_DEBUG_TOKEN N/A N/A request facebook N/A DjangoFacebook user N/A None N/A N/A FacebookMiddleware N/A object N/A N/A 
    Transparently integrate Django accounts with Facebook.

    If the user presents with a valid facebook cookie, then we want them to be
    automatically logged in as that user. We rely on the authentication backend
    to create the user if it does not exist.

    We do not want to persist the facebook login, so we avoid calling
    auth.login() with the rationale that if they log out via fb:login-button
    we want them to be logged out of Django also.

    We also want to allow people to log in with other backends, which means we
    need to be careful before replacing request.user.

     get_fb_user_cookie N/A N/A self request N/A N/A N/A  Attempt to find a facebook user using a cookie.  N/A fb_user N/A N/A facebook get_user_from_cookie N/A request COOKIES N/A settings FACEBOOK_APP_ID N/A settings FACEBOOK_SECRET_KEY N/A fb_user N/A N/A N/A fb_user N/A method cookie N/A fb_user N/A get_fb_user_canvas N/A N/A self request N/A N/A N/A  Attempt to find a user using a signed_request (canvas).  N/A fb_user None N/A N/A N/A N/A request POST get signed_request N/A N/A signed_request N/A N/A request POST N/A signed_request N/A data N/A N/A facebook parse_signed_request signed_request N/A settings FACEBOOK_SECRET_KEY N/A N/A data N/A N/A data get user_id N/A N/A fb_user N/A data N/A user N/A N/A fb_user N/A method canvas N/A N/A fb_user N/A uid N/A data N/A user_id N/A N/A fb_user N/A access_token N/A data N/A oauth_token N/A fb_user N/A get_fb_user N/A N/A self request N/A N/A N/A 
        Return a dict containing the facebook user details, if found.

        The dict must contain the auth method, uid, access_token and any
        other information that was made available by the authentication
        method.

         N/A fb_user None N/A methods N/A get_fb_user_cookie get_fb_user_canvas N/A method methods N/A N/A fb_user N/A N/A getattr self method request N/A fb_user N/A N/A N/A fb_user N/A process_request N/A N/A self request N/A N/A N/A 
        Add `facebook` into the request context and attempt to authenticate
        the user.

        If no user was found, request.facebook will be None. Otherwise it will
        contain a DjangoFacebook object containing:

        uid: The facebook users UID
        user: Any user information made available as part of the
        authentication process
        graph: A GraphAPI object connected to the current user.

        An attempt to authenticate the user is also made. The fb_uid and
        fb_graphtoken parameters are passed and are available for any
        AuthenticationBackends.

        The user however is not "logged in" via login() as facebook sessions
        are ephemeral and must be revalidated on every request.

         N/A fb_user N/A N/A self get_fb_user request N/A N/A request facebook N/A fb_user N/A DjangoFacebook fb_user None N/A N/A fb_user N/A N/A N/A request user is_anonymous N/A N/A user N/A N/A auth authenticate fb_uid N/A fb_user N/A uid fb_graphtoken N/A fb_user N/A access_token N/A user N/A N/A N/A user last_login N/A N/A N/A datetime datetime now N/A N/A N/A user save N/A N/A request user user N/A None N/A N/A