Hi,
We have a lot of duplicated users in our DB. We can find user with different names but with same email address.
I.E.
John Doe / johndoe@example.com
John Doe_1 / johndoe@example.com
I'm not sure to understand why username is incremented this way. Of course it has to be unique but as it's the same user we shouldn't have duplicates of this address. Despites it's not a unique field Drupal does not allow an email address to be duplicated in user table (see user_account_form_validate() in user.module). I therefore think that FB module should also take care to no duplicate email addresses in user table.
Should the second user not be merged with the first one (based on email address)?
We also have this error with user whose email address is like "facebookid@facebook".
Any thoughts ?
Thanks,
Seb
(simple steps have been completed without success)
Comments
Comment #1
wanjee commentedComment #2
Dave Cohen commentedIs Drupal for Facebook the only facebook-related module installed or do you have something else like fboauth in addition?
What are your fb_user.module settings? There are both site-wide settings and also per-application settings. There is a checkbox to map accounts when the email matches, rather than create a new user.
Comment #3
wanjee commentedHi Dave,
Yes, it's the only Facebook related module installed.
My settings on admin/structure/fb/settings are the following:
(x) Never use HTTPS. (I.e. this server does not support it.)
[x] Use FB Cookie
[x] Store tokens in session
[x] Use Oauth when initializing javascript. - Deprecated (this one is disabled)
[x] Get login status when initializing javascript.
[ ] Alternative verify login status when initializing javascript. - Deprecated
[x] Use tokens in session to initialize javascript
Alter Usernames : Smart
Cache Altered Usernames : off
And for my app in "Facebook user settings" fieldset I get the following:
Create local account: If user has authorized the app
[x] Map account when both local uid and Facebook id are known
[x] Map account when Facebook email exactly matches local account
I think I will have to add some login to find out why I have this behavior for some users. I cannot reproduce it myself.
Seb
Comment #4
Dave Cohen commentedThis one: [x] Map account when Facebook email exactly matches local account
should be enough to prevent two users with same email address. I'm not sure what's going on. If you find a way to reproduce please let me know.