tschellenbach/Django-facebook — Issue #98: I sign in with facebook success and get session but django does not find logined user
Author: rasielchang
Created: 2012-03-08 08:22:38+00:00
State: open

I followed the instructions in readme and test it via connect to the url "/facebook/connect/", I clicked sign in with facebook button (javascript popup) and then got facebook user data in my database.

So far everything works fine, but after I got user's data, {% if request.user.is_authenticated %} still be false, I can not figure out why this happend.

I check the database it does contains the session and my browser has a cookie with the same value.

Can anyone help me go through this? Thanks vary much.

ps. I don't want to send a registration email to the users who login in to mysite with facebook, so I modified the file registration/models.py to below:

62 def create_inactive_user(self, username, password, email,
63 send_email=False, profile_callback=None):

just set send_email=False to prevent registration email, if it is wrong, please let me know, thanks.