pythonforfacebook/django-facebook — Issue #5: FacebookMiddleware calls facebook.get_user_from_cookie on every request
Author: tino
Created: 2011-11-30 13:20:14+00:00
State: open

which is bad, as `facebook.get_user_from_cookie` makes an urlrequest (see https://github.com/pythonforfacebook/facebook-sdk/blob/e81a0c14d58881c975ccb50aa336b3b76099c3ea/facebook.py#L372

So all requests to my site create a request to facebook. This will probably get my ip banned by fb when running a high traffic site.

Next to that, it is probably not necessary. Once we got the user authentication through the cookie, we know what user we are dealing with.

So I suggest not getting the fb_user if we already have a logged in user.