Topic-icon Social Login buttons workflow - request

Active Subscriptions:

None
3 years 6 months ago #66711 by joomleb
Hi guys,

1 - JFBConnect > Configuration > General > Integrate into Joomla Login: enabled
right now publish the JFBConnect social icons from where the users can both: Login (map link) / Register through their Socials
Please, Can you create a setting that:
--- joomla LOGIN page - Limit the Social Buttons feature to the Login one / to connect (Hiding the "jfbc_loginregister_newuser")
--- joomla REGISTRATION page - Limit the Social Buttons feature to the Register, to create a new account (Hiding the "jfbc_loginregister_existinguser")
The double option it is causing confusion to my customers (...I have no words for that)

2 - SCLogin Module > Social Button Settings > Show Social Login Button(s): enabled
Please, Can you create an option to have them working just as: Login (map link) / Register (creating new user) / Both (right generically now) ?
The topic has been locked.
Support Specialist
3 years 6 months ago #66725 by alzander
Thanks for the suggestions and feedback, but I'm a bit confused on how some of it would work.
For #1, we send the user to a page where the can register *or* login because we don't know what they're going to want to do. If they don't already have an account and we send them to a login-only page, what would they do there? If they do have an account, but you have it configured to send them to a register only page, what should they do there?

Please, Can you create an option to have them working just as: Login (map link) / Register (creating new user) / Both (right generically now) ?

I'm unsure what you mean by 'map' here. If the user isn't authenticated, there's no way to map the user. We'd have to either:
* Automatically register the user and create an account
* Send them to the Login / Register page so they can determine what they should do

If you can explain more about the flow you want your users to have, we'd love to hear it and will help however we can.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 6 months ago #66727 by joomleb
Hi Alex,
"...If you can explain more about the flow you want your users to have..." = For sure, I love your (Alex and Melissa) support and to share with you is always a pleasure!

Give me some attention, because my English is not the best and the explanation is articulated, simple, but articulated.

"map link" = it was an unhappy expression of mine, I just wanted to say that I can login through socials and link them to my existing Joomla account. The result can be viewed into the JFBConnect > "User Map" menu. However it doesn't matter.

Basically there are 4 cases on where we can call the Social Buttons and, right now, always to *Send them to the Login / Register page so they can determine what they should do":

1 - JFBConnect > Configuration > General > Integrate into Joomla Login: enabled
On the "joomla LOGIN page" will appear your Social Buttons.
When a user is into the Joomla Login page it is because he wants Login.
Clicking on them, from the joomla Login page, users should always be sent to the Social Button Login page, without the Register page part. Limit the Social Buttons feature to the Login one (to connect), hiding the "jfbc_loginregister_newuser" into the page.

2 - JFBConnect > Configuration > General > Integrate into Joomla Login: enabled
On the "joomla REGISTRATION page" will appear your Social Buttons.
When a user is into the Joomla Registration page it is because he wants Register.
Clicking on them, from the joomla Registration page, users should always be sent to the Social Button Registration page, without the Register page part. Limit the Social Buttons feature to the Register (to automatically register the user and create an account), hiding the "jfbc_loginregister_existinguser" into the page

3 - SCLogin Module > Social Button Settings > Show Social Login Button(s): enabled.
On SCLogin module will appear your Social Buttons.
In my case when a user is using the SCLogin module it is because he wants just Login. Anyway, I understand that other users can want it run as to "Send them to the Login / Register page so they can determine what they should do".
It is not my case, but for that reason I asked to "create a setting option to have them working just as: just Login / just Register / Both (right now)

4 - by adding the SCLogin Content Tags in any place we want.
It is not my case, but it is a must to have a Content Tag attribute to choose how to open your Login / Register page, as just Login / just Register / Both (right now).

Finally, considering what described here , there is another question that intersects with this: when setting a Social, I should be able to choose if I want to use it just for Loging (linking an existent user) OR also for Registering (automatically creating a new user).
So, in our case we could continue to use Instagram to connect the existent users, while we'll cannot to use it for creating users (because of the email issue).

Hope it is clear now, I remain available...
The topic has been locked.
Active Subscriptions:

None
3 years 5 months ago #66782 by joomleb
Hi Alex,
Please, Do you have any answers about this topic from 20 days ago?
The topic has been locked.
Support Specialist
3 years 5 months ago #66788 by alzander
Sorry I missed responding to this. I understand what you're saying, but there are reasons we likely won't implement it as you suggest.

For 1 & 2 - The benefit of social authentication is that the user generally doesn't need to know if they're registering or logging in. The result is the same.. they are authenticated and can access your site. That's why it's called "Single Sign On".. the user has already signed into Facebook, so they don't need to know they are registering a new account for your site.. they just need to login. How that happens really doesn't matter to the user. Forcing a user to a "Login" page where they can't register or a Register page where they can't login would likely cause more confusion than benefit. It would also add a lot of complexity to JFBConnect to know where the user clicked the Facebook button (what if it was not on the login *or* register page, but somewhere else?).

3) This goes along with the above. The social buttons don't really care what the user's intent was. JFBConnect will figure it out:
* If they already have an account, we'll log them into it.
* If they don't have an account, we'll create them one automatically (or send them to the Login/Register page to do so)
* If they already have a Joomla account with the same email address, but have never used a social login, we'll automatically associate the Joomla account to the social network.
In all the cases above, the user shouldn't have to think about where they are on your site first, it should 'just work'.

I hope that helps explain further,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 5 months ago #66790 by joomleb
Hi Alex,
many thanks for explications. ...And what about the Instagram issue ?

- Instagram, right now, doesn't provide the email address for a user
- We have JFBConnect set to use the Email into the Username during social registration

We cannot use Instagram for social registration process, but we'd like to continue to use it for Login connecting already registered users, because here in Panama (Centre and South America) Instagram is the most used right now.

Please, Do you have any suggestions ?
The topic has been locked.
Support Specialist
3 years 5 months ago #66796 by alzander

So, in our case we could continue to use Instagram to connect the existent users, while we'll cannot to use it for creating users (because of the email issue).

Instagram is a good example of why you need to send users to the "Login" or "Register" page. If a guest authenticates with Instagram and they haven't already associated it to a Joomla account, JFBConnect wouldn't know the user's actual intention. Since there's no email, we couldn't even try to guess if they already have an account, so we send them to a page where they can choose to:
a) register a new account
b) login to an existing Joomla account

I don't know of any better way to handle this. There's not a way to know ahead of time if the user viewing a page has an account, so we can't only show it to previously connected users. Once they click that button though, we have to have some way for them to proceed and the above gives them the flexibility to choose what's best for them.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 5 months ago #66817 by joomleb
Hi Alex,
okay. What you are missing is our JFBConnect workflow configuration:
- Auto Username Prefix: email
- Username Field on Registration: Generate and Hide
- Email Field on Registration
Since Instagram no longer let us capture the email, the quick Registration through JFBConnect with Instagram cannot longer ends successfully! (But we want to continue to offer the quick Login with Instagram).

So, we need, at lest, a way to hide the Instagram Registration display part.
We look for it through a simple CSS "display: none", but we weren't able to find a valid CSS class to use for it (just on the Instagram Login/Register page workflow).
1 - Please, Can you suggest a quick trick / tip for it ?

2 - And, Please, Can you add a page class depending on the JFBConnect Social called ?
This would solve the point 1 allowing us to personalise the JFBConnect Login / Registration page depending on the Social...
The topic has been locked.
Support Specialist
3 years 5 months ago #66822 by alzander

But we want to continue to offer the quick Login with Instagram

If you show an Instagram login button, what should happen if a user clicks it and doesn't have an account already? I understand you want to only show it on your Login page, but what would you expect to happen if a user goes to the Login page and clicks that button?

CSS:
The instagram button has a class on it, like:
class="social-login instagram"
On our Login or Register page, you would be able to hide the Instagram button on one side or the other with CSS like below for the login portion
#jfbc_loginregister_userinfo .social-login.instagram { display:none;}
Or this for the registration side:
#jfbc_loginregister_newuser .social-login.instagram { display:none;}
Again though, if the user clicks the button in the 'other' section, it will still try to log them in or bring them back to the registration page if they have no account (and we can't know which ahead of time)

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 5 months ago #66823 by joomleb
Hi Alex,
No. Sorry for my English, I'm not speaking about the Instagram social button!

I mean, the user click on the Instagram social button > (he has to login in Instagram and he is redirected to...) > the Instagram social Login / Registration page is shown

We want to hide the Registration part (div #jfbc_loginregister_newuser) of the Instagram social Login / Registration page, the page opened when and only when the user click on the Instagram social button (not the others social buttons)
The topic has been locked.