Thank you for the quick reply!
Sorry if this post is long, but I think its better to describe it too much than too vaguely. The focus of this post is the email instead of username feature request.
I've modified the code slightly to make it almost work. My temporary workaround is to hide everything but the Connect with facebook button, and then place the Community Builder login module above that. This leaves 2 things that the workaround leaves hanging: 1. Two logout buttons once logged in. 2. Have to enter username to connect existing account. But for now, I am using it like that, because its just such a good component.
What I think would work with Community Builder is (in order of importance):
1.
Quick documentation fix: Add a passage about removing required field settings in CB that arent always filled out via facebook joining - in the tutorial section on CB. This took some time and searching on the forum here to figure out. Spelling it out can prevent alot of customer frustration.
2. Making a parameter in CB integration that allows you to use
email instead of username in:
a. The login module
b. When connecting an existing account to a facebook account.
The background is that in CB, you can select to login using username/password, or email/password. I chose email because it seems more professional and suitable for my particular site. This is done in the CB login module settings, and creates a habitin the user to write the email and password to log in. I myself didnt even see that the login said "username" when I tried to login, and I couldnĀ“t at first understand what was wrong.
Ideally, I'm assuming you'd like it like this:
* New user comes to site and clicks on Facebook connect button
* On registration page, they enter email address, full name, and password (no username field)
* Account is created
* On return, they use their email and password to log in
That is correct, with this addition:
5. Existing user comes to site and wants to connect facebook account, clicks facebook connect button
6. On registration page, they enter their
existing email/password login combination
7. Account is linked to facebook account.
8. On return, they can use either email and password to log in, or facebook.
Summary: It would be great to be able to set a parameter, when using Community Builder, so that username is replaced with email (in the form and functionally) in two places:
1. The JFB login module.
2. The connect existing user to facebook account part of the loginregistration page.
Off topic:
Something I would also love to see in a new release, would be a more advanced new account registration form when connecting with Facebook. Getting the email from someone and a password is not the most important aspect - it even sort of goes against the vision of single sign ins, but I guess some webmasters like the emails. I would like instead the page to be customizable - like, you can select community builder fields to show up there, and the data to enter the newly created CB account as well, together with the facebook info. I would also like to be able to remove the password thing as part of the customization, to honor the original vision of this type of semi-open login. For me, the greatest benefit is to let users remember only their facebook login, and still log in to my site + getting more users since its fun and easy to join with facebook. Especially if they can enter some Community Builder information even though they join via facebook. As it is now, I am redirecting them to the edit profile page after they create a new account with facebook.
And, a strange problem (not sure if its my site or the component)
A persisting problem that I havent been able to solve (not as important as the email instead of username thing for CB):
I cannot get the "create new user" set to "no" to work for me. I got it to work once, but then my name was set to "unknown unknown" when it should have been the Facebook name. I also end up on some strange URL that isnt the one I have set in the redirect. Also, now that I have erased that user in joomla, CB and user mapping, I cannot rejoin with the option set to know. I get the error message "please enter a valid email address" - really strange. Maybe its something I do wrong, but I feel this feature might benefit from more polishing.