× Joomla Facebook Connect support forum

Topic-icon User Creation: Full Joomla User option fails

Active Subscriptions:

None
15 years 8 months ago #4896 by Ryan
Hi,
I was having trouble getting JFBConnect to work with an existing site. So I uninstalled the component, plugins and module. I then created a Joomla test environment on my development machine (no public access) and installed JFBConnect. I then updated my Facebook application with the appropriate host name and tested logging in with Facebook credentials.

The Facebook login box appears and accepts my credentials. The site then redirects me to the welcome page, giving the option to register a new Joomla user or login with existing Joomla credentials. A new Joomla user account is not created automatically and an entry is not made in user maps.

Please help I would really like to get this working.
Thanks,
Ryan
The topic has been locked.
Support Specialist
15 years 8 months ago #4900 by alzander
Go through the following checklist:
* Have you enabled the JFBConnect User plugin?
* Have you enabled the JFBConnect Authentication plugins?
* Is the JFBConnect User plugin ordered AFTER the Joomla User plugin?

Those are the most common problems with creating new users. If those are all correct, can you let us know a little more about your configuration:
* Are you integrating with JomSocial, Community Builder, or Kunena?
* Is "Allow User Registration" enabled in the Global Configuration?
* If you enable showing API error on the front end (in the JFBConnect->Configuration->Facebook Settings area), do you see any errors when trying to create a user?

That's about all I can think of now. Hopefully one of those questions will lead you to a solution or trigger some other information you might be able to give that would help us narrow it down. If not, we'd probably need to log into a non-functioning site to see what's going on.
The topic has been locked.
Active Subscriptions:

None
15 years 8 months ago #4901 by Ryan
Hi,
Yes and I did double check the following settings;
* Have you enabled the JFBConnect User plugin? - Yes it is enabled.
* Have you enabled the JFBConnect Authentication plugins? - Yes it is enabled.
* Is the JFBConnect User plugin ordered AFTER the Joomla User plugin? - Yes it is after the Joomla user plugin.

Does it make a difference if Joomla authenticate module is after the JFBConnect authenticate module?

The only extension I have added to the base installation is JFBConnect. The base Joomla install is 1.5.18. Allow user registration is enabled and new user account activation is also enabled.

I enabled the api error option and received this: Facebook API Error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.

What is this telling me please? And does it mean a problem on my ISPs side or a problem on the Facebook side.

Thanks for your help,
Ryan Quinn
The topic has been locked.
Support Specialist
15 years 8 months ago #4903 by alzander
Ah, great sleuthing! We've seen that error on 1 other site, which means it's very rare. It's basically saying that the SSL certificate from Facebook could not be confirmed. While it could mean that Facebook is compromised (it isn't), it more likely indicates your server does not have some of the more common root domain certificate authorities installed to which it can verify Facebook's SSL cert. Hopefully that sorta makes sense.

To tell the Facebook library to bypass this check of the SSL certificate, you can add the following code in the /administrator/components/com_jfbconnect/assets/facebook-api/facebook.php
Around line 97, you'll see
public static $CURL_OPTS = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
....

Try updating it to the following line (adding the first line at the top):
public static $CURL_OPTS = array(
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
....

This tells your server to ignore the SSL certificate. The session will still be secure, but IF Facebook gets compromised and the attacker targets your site, it means there could be a problem. In the scheme of things, we think this is a low-risk issue. An alternative is to contact your hosting provider to have them update their root certificates.

Hope this helps. If not, you know where to find us!
The topic has been locked.
Active Subscriptions:

None
15 years 8 months ago #4910 by Ryan
The code patch worked. I log in with Facebook, it welcomes by username and asks if I would like to register a new Joomla account or login with an existing Joomla account. I register and login in. I can then see registered content. Afterwords I logged out and then returned to the site and logged in again with the Facebook credentials. I was logged into the system as expected. Very good!
Your explanation makes sense, because the localhost I am using is a simple Vista machine. It would not have root domain certificate authorities installed because it is a workstation and not a server in the true sense.
Thanks very much for your help!!!
Ryan Quinn
The topic has been locked.
Support Specialist
15 years 8 months ago #4913 by alzander
No problem. Glad we figured it out. We'll likely add a 'Bypass SSL checks" in a future version on the Facebook configuration page. Never thought about some localhost environments for testing. We install a full Apache suite to test with, even on Windows, but there are some built into tools that let you run a site without going through the hassle... in a addition to some random hosts which we've seen don't have the certs.

Anyways, glad to hear the fix worked. If you run into anything else, you know where to find us!
The topic has been locked.