× Joomla Facebook Connect support forum

Topic-icon Setting JFBC Login as the default login of the system

Active Subscriptions:

None
Hi,
I run a small non-profitable website that trains people in the field of Data Warehouse and Business Intelligence.
The name of my website is www.dwbiconcepts.com .
I have recently added JFBC in my site in order to help my users login through their Facebook account. While I am pretty satisfied with this component, I am experiencing following problems:

Issue: #1 Priority 1
I have an article for registered users only. If a visitor clicks on a link pointing to that article, I want JFBC Login module to show-up. But unfortunately it always shows up the default Joomla login page. This happens even though the default Joomla "Login" module is disabled in backend/ Or enabled with a lesser Order.
Example:
Please follow the below link to see this example:
www.dwbiconcepts.com/index.php?option=co...t&view=article&id=45
The above article (article id=45) is only for Registered users, so naturally the site asks the visitor to login. But I want it to show up JFBC Login module rather than the default one - which does not happen.

Issue #2:
If a user is already registered with my site Community Builder and has updated his/her photo/avatar, his/her Facebook photo is not updated when he or she connects the account with Facebook. Is this a feature or an issue?

Issue #3:
My community Builder user profile has a custom field "Gender" which I have mapped to Facebook gender. Even though all the other information gets updated correctly from Facebook, I found that the Gender field is never updated and remains NULL. Any idea where am I going wrong?

Thanks in advance for your support.

Best Regards
Akash
The topic has been locked.
Support Specialist
15 years 2 months ago #8498 by alzander
Issue #1: Custom login
The login you're seeing is built into Joomla. It happens whenever a page is marked as registered, and happens regardless of what User plugins you have published.

What you can do to change this behavior is modify the Community Builder template you're using to show the JFBConnect Login With Facebook and hide the rest of the Login stuff. Once you're editing the template, you simply need to add { JFBCLogin} (no spaces) and when that's output to the user, it will automatically be converted to the Login With Facebook button.

I'm not sure if CB has an easy way to modify that Login page, and I don't know off hand where to modify their Login template file as they don't use conventional Joomla standards for template overrides. If you need help, we can try to figure out the location of that code, but it may take a little time.

Issue #2: Sounds like a bug, actually. If you have the "Always Import Profile" setting enabled in Community Builder, the avatar should update every time a user logs in through Facebook. If that's not what's happening, let us know. Also, are other fields updating when the user logs in, or is it just avatar that's not being updated?

Issue #3: The gender field was recently added and we've heard a few times about possible issues. We're investigating this, and if there's something we find, we'll get a fix out as soon as possible.

Hope this all helps answer your questions. If you have anything else you run into or need any further help with the stuff above, just let us know!
The topic has been locked.
Active Subscriptions:

None
Okay, I have figured out a way to handle my first issue. I downloaded one joomla component that can disable Joomla Core Registration (located here: extensions.joomla.org/extensions/access-.../authentication/1236).

Using this component I am able to redirect the core's login to a custom page in which I loaded JFBCLogin module using {loadposition} directive.

But the other issues still remain.
The topic has been locked.
Active Subscriptions:

None
Thanks so much for your reply. Let me check if I can modify the CB Template as you suggested. In case I am not successful, I will let you know. But until then, I will use the disable core login extension to redirect login/registration requests to custom page.

As for issue #2, I have tested it with both "Always Import On" set to yes and no - but still it's not happening. And this problem is only with Avatar and not with the other fields. Other field gets updated properly.

Issue #3:
Is this happening because 'Gender' field in my site is set to radio button (male/ female) only whereas Facebook gender field most probably string
The topic has been locked.