By Dave Parker on Tuesday, 22 July 2014
Posted in General Issues
Replies 7
Likes 0
Views 599
Votes 0
Hi all!
I have a question regarding on how usernames are now no longer supported in FB API 2, and how this affects integration with ES.
I may have misunderstood this, hence why I am asking. From what I understand, if we now use OAuth with ES and FB, user's "username" in Joomla/ES will now be their email address? Is this correct. I would like to integrate FB signup/login on my site, but not if people's usernames are their emails, as in my opinion, this breaks a certain level of privacy for my users (and potential for them to get spammed!). I specifically don't show a users email address on my site as it is.
Clarification would be great.
Thanks
Dave
Hi,

Sorry about that.

Can you try this patch:

1. Open the file /media/com_easysocial/apps/fields/user/joomla_username/joomla_username.php

2. Locate the function onRegisterOAuthBeforeSave (should be at line 354 in the latest version, 1.2.19)

3. Change the whole function to the codes below:

public function onRegisterOAuthBeforeSave(&$post, &$client)
{
if (empty($post['username'])) {
$post['username'] = $post[Foundry::config()->get('oauth.facebook.username', 'email')];
}
}
·
Wednesday, 23 July 2014 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Dave,

You can actually configure this in the settings of EasySocial as you can see here, http://screencast.com/t/w1PM798LC3F
·
Tuesday, 22 July 2014 22:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah ok... although I still don't want people's full names shown on the site. I will have to continue to not allow OAuth for the time being... however, maybe in a future release you could allow OAuth, along with the quick registration so as users still have the option of choosing their username?
Dave
·
Tuesday, 22 July 2014 23:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Dave,

Right now, when you authenticate with Facebook your users are actually allowed to enter their custom usersnames if they want. You just need to set the registration mode to be other than simplified.
·
Tuesday, 22 July 2014 23:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark...
Thanks for the reply. I did as you suggested above, and when I got to the screen you are talking about, the username field was filled out with the full name of the Facebook user (I was using a test user). I deleted this, and typed in my own username, and proceeded to register the account. Unfortunately, when the user was created on ES, the username I entered was ignored, and the original full name of the test user remained.
Any ideas?
Dave
·
Wednesday, 23 July 2014 03:39
·
0 Likes
·
0 Votes
·
0 Comments
·
That has worked... thanks!
·
Wednesday, 23 July 2014 19:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Dave, glad that your issues are resolved now
·
Thursday, 24 July 2014 12:53
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post