Topic-icon FB username as Username

Active Subscriptions:

None
11 years 6 months ago #48930 by EOLGeorge
Is there any way to make the people that register with Twitter or Facebook usernames in Joomla automatically be the same as on Facebook or Twitter if they register from there?
The topic has been locked.
Support Specialist
11 years 6 months ago #48932 by mel
Replied by mel on topic FB username as Username
A few things to note:
* Facebook no longer allows you to retrieve the user's username.
* Twitter usernames are not guaranteed to be unique, as someone may have already registered with that Joomla username on your site. However, you can use the 'Auto Username Prefix' to 'fb_,g_' to set the username to t_USERNAME automatically, where there may be a unique identifier at the end, like t_sourcecoast1234.

We also do support the following options for the automatically generated usernames: first.last, firlas, email and fb_/g_/etc.

Of course, if you have any suggestions for a better auto-generated username options in the future, we're open to thoughts.

Thanks
-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #48938 by EOLGeorge
Replied by EOLGeorge on topic FB username as Username
Its a shame they don't allow grabbing the user name, but a typical FB move.

Guess since the Auto username prefix.suffix is the only option I have some suggestions for a better implementation for that. IMHO

The current options make pretty ugly usernames. Allowing an admin to set something along the lines of a - or a _ between the first and last with the capitalization as specified by the user and then having an admin defined suffix indicating the registration source would be more elegant. ie 01 through 09 for FB instead of the obvious _fb.

I think John_Smith01 is much prettier and user friendly than john.smith_fb

Seems pretty simple to implement but that probably shows my gross lack of understanding of php.

Thanks for the quick reply and as always excellent customer service.

G
The topic has been locked.
Support Specialist
11 years 6 months ago #48943 by mel
Replied by mel on topic FB username as Username

The current options make pretty ugly usernames. Allowing an admin to set something along the lines of a - or a _ between the first and last with the capitalization as specified by the user and then having an admin defined suffix indicating the registration source would be more elegant. ie 01 through 09 for FB instead of the obvious _fb.

I think John_Smith01 is much prettier and user friendly than john.smith_fb


Let me clarify our options:
* first.last would generate john.smith, john.smith1, john.smith2, etc with the number incrementing to make a unique username if users have the same first and last name, not a number to indicate which social network
* firlas would generate johsmi, johsmi1, johsmi2, etc (same reason as above for the number)
* email is unique, no description required
* fb_ would generate fb_UNIQUE_ID_RETRIEVED_FROM_FB_ACCOUNT

The difference between first.last option and your examples would be the capitalization and separator.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #48950 by EOLGeorge
Replied by EOLGeorge on topic FB username as Username

The difference between first.last option and your examples would be the capitalization and separator.


Actually more than that, it would eliminate the _fb which would brand the user as a FB user which some of my non FB users actually dislike and goof on and replace it with an identifier that would not be as obvious.
The topic has been locked.
Support Specialist
11 years 6 months ago #48951 by mel
Replied by mel on topic FB username as Username
There is no "_fb" identifier on the username when the 'Auto Username Prefix' option is set to first.last, firlas, or email. Regardless, I have added an issue to our tracker to enhance the auto-username prefix in a future release.
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #48953 by EOLGeorge
Replied by EOLGeorge on topic FB username as Username

There is no "_fb" identifier on the username when the 'Auto Username Prefix' option is set to first.last, firlas, or email.


I do understand that, I just want a way to identify where users have signed up from without their usernames shouting it out.

That said is there a way to identify which users using JFB connect as compared to a regular signup?

Thanks,

G
The topic has been locked.
Support Specialist
11 years 6 months ago #48954 by mel
Replied by mel on topic FB username as Username
I see your point now. No there is currently not.

If you're interested in tweaking the code to get something closer to what you're looking for, you can look at the
1. /libraries/sourcecoast/utilities.php class around line 409 for the "getAutoUsername" method.
2. /components/com_jfbconnect/libraries/provider/socialprofile.php around line 596 for the "getAutoUsername" method.
The topic has been locked.