Topic-icon JFBConnect and K2 login integration

Active Subscriptions:

None
11 years 6 months ago #49196 by ncmwebmaster
Hi,

I have now bought the product and are evaluating this in a local installation.
Everything is installed - have not changed anything in the standard configuration.

Until now, I have used the K2 login module because it gives access to write K2 items from the frontend and because it gives access to change K2 user settings. I have therefore added a facebook login button as described here. This is working. But the button links to a site, where this user can enter eventually existing username and password in order to connect to Facebook account but also register for new account. Two issues here:

1. The page is in English but the rest of our page is in Danish. If someone can guide me to translate some text inside a textfile I think I can live with this, since it looks like the components has not been translated into Danish.

2. Under the "connect user part" of the new page is a registration option. But this option miss a few K2 fields I have standard (radiobutton for male/female, user description and posibillity to upload user avatar. Also I need the mobile number of the new user for the component Acymailing. (Currently also part of the K2 registration page). How can I incorporate this information - or can I instead have the K2 registration page viewed together with information in order to link user with Facebook account?

In the configuration of JFBConnect there is an option for choosing a registration component. But JFBConnect is the only possible option - shouldn't K2 have been an option here?

See attachments for details.
File Attachment:


File Attachment:


File Attachment:



Thanks so far,

Claus Lücking.
The topic has been locked.
Support Specialist
11 years 6 months ago #49199 by alzander

This is working. But the button links to a site, where this user can enter eventually existing username and password in order to connect to Facebook account but also register for new account.

That is the normal page to go to when Automatic Registration is disabled. If you'd prefer the user to automatically be registered and have their account created for them, along with their profile information imported into K2 automatically, you can set the "Enable Automatic Registration" setting to 'Yes' in the JFBConnect configuration area.

If you want to use the Login / Register page of JFBConnect...

1. The page is in English but the rest of our page is in Danish. If someone can guide me to translate some text inside a textfile I think I can live with this, since it looks like the components has not been translated into Danish.

All the strings on that page are overridable using standard Joomla language files. You can find the English file in the /language/en_GB/en_gb.com_jfbconnect.ini file. Simply copy that file to the Danish language directory on your site and update the strings as necessary. JFBConnect has about 30 language translations already available, but Danish is not one of them. If you make the updates, feel free to contribute back your changes and we'll gladly include them in a future release. To see all the translations available, or join our translation team, see our Transifex project website:
www.transifex.com/projects/p/jfbconnect/

2. Under the "connect user part" of the new page is a registration option. But this option miss a few K2 fields I have standard (radiobutton for male/female, user description and posibillity to upload user avatar. Also I need the mobile number of the new user for the component Acymailing. (Currently also part of the K2 registration page). How can I incorporate this information - or can I instead have the K2 registration page viewed together with information in order to link user with Facebook account?

It looks like there's actually a minor bug in our K2 profile plugin where its only showing Required fields and not All fields. We can help you fix that, but it may not be what you're looking for. Right now, we don't support showing fields from AcyMailing on our registration page.

Something that may work for you is enabling the Social Profiles - Joomla plugin. Then, in the JFBConnect -> Configuration area, set the "Registration Component" to Joomla. That will redirect the user to the standard Joomla registration page to fill out their information. That will use whatever language strings you already have and may be the best solution for what you're looking for.

I hope that helps, but if you have any other questions, just let us know.

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

None
11 years 6 months ago #49201 by ncmwebmaster
Hi Alex,

Thanks for the quick reply!
I think I can figure out the translation part.

I'm sure we will have this up and running. We are close. I have activated the "Social profiles - Joomla" plug-in and set Joomla as the default registration method in the configuration of JFBConnect. And actually now I get my normal registration page when I hit the button for connecting to Facebook in the module of K2 with the template overwrite :)

I am now re-directed to the URL: luckingtest.dk/index.php?option=com_users&view=registration#_=_
(localhost has been set to luckingtest.dk in the host file).

That is great. But now I miss the option of entering the username and password in order to connect the user with his facebook account if the are already registered in Joomla - they were present with the JFBConnect registration page as viewed in the attachment. I have tried enabling the option "Integrate into Joomla login" setting this to "Top" in the general configuration of JFBConnect. This gives a new button on the registration page - but nothing happens when I push this.

Not sure if is because it is a local installation (localhost).

Or what am I doing wrong?
Any settings I can change?

Thanks,

Claus.
The topic has been locked.
Support Specialist
11 years 6 months ago #49208 by alzander

That is great. But now I miss the option of entering the username and password in order to connect the user with his facebook account if the are already registered in Joomla - they were present with the JFBConnect registration page as viewed in the attachment. I have tried enabling the option "Integrate into Joomla login" setting this to "Top" in the general configuration of JFBConnect. This gives a new button on the registration page - but nothing happens when I push this.

When you switch to using the Joomla registration option, you're getting just that, the standard Joomla registration page. There are advantages and drawbacks to this:
* Good: Any work you've already done to make the registration page look how you want will work
* Good: Other extensions can modify the registration form with their own fields, like K2 and Acy are
* Bad: It's not 'our' registration page, which means we don't have the 'Login to an existing account' section

It's a bit of a give an take, unfortunately, as we don't support Acy yet. Otherwise, our registration form sounds like it has everything you want. Conversely, the Joomla one also has most of the things you want.

As for the "Integrate into Joomla Login", that simply adds the social login buttons to the Login and Registration pages of Joomla in case anyone lands on those pages normally so that they can login or register with a social network as well as the standard Joomla creds.

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

None
11 years 6 months ago #49214 by ncmwebmaster

alzander wrote: Something that may work for you is enabling the Social Profiles - Joomla plugin. Then, in the JFBConnect -> Configuration area, set the "Registration Component" to Joomla. That will redirect the user to the standard Joomla registration page to fill out their information. That will use whatever language strings you already have and may be the best solution for what you're looking for.


Maybe it's just a misunderstanding. To me, it looks like I should go for your suggestion quoted above. It gives me all the fields and the same look as I am used to. But the problem is, I never get a change to link my user with my facebook account - neither for a new registration nor for an existing user. And that was it all was about.
I'm sure it is just a minor change somewhere or a small configuration.
If, with the suggested solution, will be impossible to link the user to the facebook account during registration I can live with that. As long as he can do the link the first time he wants to login with his new site account.

If it is okay with you I will enable the solution temporary on our live site and you can have a short look?

Best regards,

Claus.
The topic has been locked.
Support Specialist
11 years 6 months ago #49228 by alzander

Maybe it's just a misunderstanding. To me, it looks like I should go for your suggestion quoted above. It gives me all the fields and the same look as I am used to. But the problem is, I never get a change to link my user with my facebook account - neither for a new registration nor for an existing user. And that was it all was about.

When using the Joomla registration flow, the user won't be given the opportunity to link to an existing account from that page. It's just not something we support right now. However, there are multiple ways that an existing user can connect to an existing account:
* The setting "Automatically link users by email" can be enabled and will check the user's social network email address against all existing Joomla users. If there's a match, the accounts will be linked immediately and the registration form will be bypassed
* The SCLogin module and {JFBCLogin} tags, which can be added anywhere to your site, have an option to show "Connect this account to..." links. With that, if a user logs in using their Joomla credentials, they can add connections to each of the social networks your site now supports.

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

None
11 years 6 months ago #49243 by ncmwebmaster
Okay - I got it - finally you may say ;)

I think I will stick with the SCLogin. When hit "Registration" I am actually redirected to the right page. And I can put the K2 functions in another place - actually it looks like I can put them in a menu and make this available from the login module when logged in. Will try this later.

Only downside is - if a registered user hit the Facebook icon in the module without first having logged in the normal way and associated the two accounts, he is re-directed to the registering page. But as I understand you, this can not be avoided. After he has connected the accounts, the button is working great.

Thanks for your patience.

Best regards,

Claus.
The topic has been locked.
Support Specialist
11 years 6 months ago #49254 by alzander

if a registered user hit the Facebook icon in the module without first having logged in the normal way and associated the two accounts, he is re-directed to the registering page.

I'm not sure I understand this.. how is the "registered user hit the Facebook icon" they are already registered and shouldn't be redirected to the "registering page". Not sure what I'm missing there.. but if you can explain further, we'll gladly help however we can.

Glad it sounds like things are going well overall though.

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

None
11 years 6 months ago #49280 by ncmwebmaster
Hi,

Okay - I will try to explain further. Maybe it's a misunderstanding or wrong configuration from my site.
I don't what to use the auto-login feature if I can avoid it.

We have a lot of users who already are registered users and are able to login with joomla username and password. Some of them will have a Facebook account and would like to start using this as single sign-on method. I think when I deploy the setup they will think they should hit the blue FB icon in order to connect their joomla user and FB account. But this will just redirect them to the registration page instead of asking them about username and password in order to establish connection - and I for sure don't want them to create a new user...

As I see it, and at leased how it works currently in my demo setup, they will first have to login the usual way (but now using SC Login) and then they get the opportunity to connect the two accounts. And first after this they can start using the blue icon in the SCLogin module box when coming back to the site again.

If there is no solution for this I will try to explain the method for the users in the initial text I can see I can enter in the login module.

Sorry if it is not clear enough or I misunderstand the solution or I am missing something in the configuration.

Thanks,

Claus.
The topic has been locked.
Support Specialist
11 years 6 months ago #49292 by alzander

I don't what to use the auto-login feature if I can avoid it.

What I'm talking about isn't really auto-login, though we offer that as an option as well.. What the "Automatically link users by email" setting does is:
* You have an existing Joomla user on your site with email This email address is being protected from spambots. You need JavaScript enabled to view it.
* The user also has a Facebook account that uses This email address is being protected from spambots. You need JavaScript enabled to view it.
* That user comes to your site and clicks the blue Facebook login button.
* JFBConnect will start the authentication process, detect that the user has never logged in using Facebook before.. then, find the existing Joomla user with the same email address and voila, the user will simply be logged into the existing Joomla account
When they return to the site, they'll be able to login using their Joomla creds or their Facebook account.

As for the rest of what you mention, you're essentially correct. If you use the Joomla login process, you'll need the user to login using Joomla and then guide them on how to associate their Facebook (or other social network) account to the account they are logged in with.

I hope that helps explain some more,
Alex
The topic has been locked.