[eluser]federico_jacobi[/eluser]
[quote author="Ted S" date="1307667896"][quote author="federico_jacobi" date="1306653604"]Did the existing user today for Facebook and works great. Dacus's code is absolutely correct, but there are a few nuances:
- In the fb login button you need to add "email" to the perms, otherwise you cannot get the user email "directly". You can always get it via auth_other/fill_user_info but I find it complicated and defeats the purpose of the easy FB login.
[/quote]
Very helpful, thanks so much!
If I understand this correctly, you are using the facebook email to compare against the user database and match on that. I'm working on this myself but have you given any thought to simply letting the user authenticate a facebook account if they are already logged in?
From my thinking, if an existing user comes to the site it's ideal to show them a "connect" button up front and check email for a match, like you do now, but also allow someone who is already in the system to connect as well, without having to worry about a match since we already know who they are.[/quote]
Mmmmm ... Your thinking is absolutely correct, from my perspective though I see someone coming in, they see their FB connect and go with that ... there's a pretty good chance they use the same email for both and there you go. If that is NOT the case, then create a new account ... but that's where your thinking comes in ... I guess you could create a "profile" page where you add the FB login. (notice that merge function before, good stuff, but haven't tried it yet)
Notice when you do an FB login, auth_other really checks for the FBid not the tankauth username/email ...