× Joomla Facebook Connect support forum

Topic-icon Issues with JFB Connect & Jomsocial Registration

Active Subscriptions:

None
Hi,

We are currently running Joomla 1.5.23, Jomsocial 2.2.3 and have recently installed and are running JFB Connect 4.0.2.

Our portal is located at www.communityuk.net.

Prior to the installation of JFB Connect, we were using the Jomsocial registration system, using it to create a range of extended registration fields that we require our users to complete.

Within our registration "form" were a number of "required" fields, and a number of "non required" fields.

In addition, there was an additional "section" with more fields for users who were registering as a company.

As is probably obvious, there are a range of "required" and "non required" fields across the personal and company registration forms.

Unfortunately, it now appears that JFB Connect will not allow us to collect this data as we need to.

We have set up the facebook integration correctly and have configured to map/import certain data fileds with FB fields and also to show "required" fields to be completed as well.

The problems we are experiencing are these:-

1) The fact that we are only able to show our jomsocial "required" fields, leaves our registration form looking messy, disjointed and incomplete - We need to show the whole "form".
2) As the Company information fields are not "Required" (as many users are not business users), we cannot show any of these at registration.
3) The Jomsocial required fields that we have managed to show in the JFB registration process/form do not input data into the jomsocial profile, even when you have entered and submitted correctly through the JFB Registration screen.

Finally, the whole JFB Connect FB Logon functionality fails unless you enter the address of our portal with a full "www" (i.e. using communityuk.net causes the process to fail).

I would be very grateful if you could shed some light on this all ASAP as we are trying to get to a national launch of our site and this is a real problem for us at the moment.

Thanks,
Peter R-F
CommunityUK
The topic has been locked.
Support Specialist
14 years 7 months ago #14430 by alzander
I should be able to help you make a few changes to accomplish what you're looking for using JFBConnect's registration flow. There is no way to redirect from the "Login With Facebook" click to JomSocial's registration flow though, as it's completely separate and incompatible with how JFBConnect functions.

1 & 2) If you'd like to show all fields, it's pretty. Simply modify the /plugins/jfbcprofiles/jomsocial.php file. At about line 82, you'll see:
$filter = array('published' => '1', 'registration' => '1', 'required' => '1');
Take the required portion off so it looks like:
$filter = array('published' => '1', 'registration' => '1');

Then, all registration fields for that profile type will show. The user (if enabled in the admin area of JFBConnect) can also choose which JomSocial profile type they want to be, and the page will reload to show those fields.

3) If the fields aren't saving, then something's wrong. Do you have any plugins (user or system) that could be redirecting the user during the registration or login process? If so, that would prevent other plugins and the whole JFBConnect registration/login code to not execute (it basically hijacks the execution of the login process). That's all I can think would be causing that, but if that's not the case, let us know, and we can test some.

I'd recommend getting the fields showing how you want, and then, if there are issues saving the profile, we can get into the admin area site if necessary to debug any other issues.

The reason that you require www on your URL is likely due to your Facebook App settings. Make sure the App Domain is "communityuk.net" and the Site URL is "www.communityuk.net". You can also try the Site URL without the www, but it shouldn't matter. The App Domain is the most important. This configuration error could also be why profile information isn't importing, but I can't be sure.

Hope that helps get you on your way,
Alex
The topic has been locked.