Topic-icon Facebook login not working?

Active Subscriptions:

None
9 years 9 months ago #45758 by erivan
Hi Team,
We tried the Facebook login using JFBConnect. It doesn't works in front end.

While we are trying to check error using "Error Check" at back end, we are getting fail in "Facebook Javascript library inclusion" please find the attachment jfb_error.jpg for reference.

Also we are unable to load the controller Social at back-end.
Please advice.

File Attachment:
The topic has been locked.
Support Specialist
9 years 9 months ago #45771 by alzander
For the authentication not working, there is a big block of Javascript at the bottom of your page from another extension that's trying to implement Facebook authentication. Some of the block looks like:
<script>
				var fbautologin =0;
				
				function setCookie(c_name,value)
				{			
					var c_value = escape(value); 			
					document.cookie=c_name + "=" + c_value;
				}
					
				 window.fbAsyncInit = function() {
					FB.init({
						appId: "563181610454540",
						status: true, 
						cookie: true, 
						xfbml: true
					});
					setCookie("facebookid","");
I don't know what extension that is, but that is what JFBConnect is detecting and throwing the error about. You'll need to find the other extension where you've set the Facebook App ID of 563181610454540. That ID is different than the one you set for JFBConnect, so there is some extension somewhere you've configured with that ID that you'll need to find. Once you've found it, disable it altogether or at least the Facebook integration portion of it.

Also we are unable to load the controller Social at back-end.

Can you explain what you mean here? What are you doing and what are you seeing (an error message, a blank page, etc)?

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

None
9 years 9 months ago #45819 by erivan
Replied by erivan on topic Facebook login not working?
We have checked the Facebook Login as you requested.
Its working for new registration but it doesn't login automatically.
For existing user its going to registration page with the error email already exists (Needs auto login).
The topic has been locked.
Support Specialist
9 years 9 months ago #45822 by alzander

Its working for new registration but it doesn't login automatically.

I just registered on the site using Facebook and was automatically logged in. So the registration flow seemed to work as I'd expect.

For auto login, please note that if you use the Logout button on your site, JFBConnect won't automatically log you in for about 30 minutes (or however long the Session Timeout is in the Joomla Global Configuration area). After that time elapses, if you return to the site you'll be automatically logged in.

For existing user its going to registration page with the error email already exists (Needs auto login).

If you get that error, it means there's already an account on the site with that email address. You'll need to either a) set the "Automatically Link Users By Email" setting or b) create a new account for the user that registered.

I hope that helps explain, but if you have any questions, just let me know.

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

None
9 years 9 months ago #45831 by erivan
Replied by erivan on topic Facebook login not working?
Dear Alex,

Thanks for your response.

For new user it registered successfully but if you refresh the page it throws an error User Id doesn't exists.

For the existing user(registered using Facebook) it doesn't login.

Please advice.
The topic has been locked.
Support Specialist
9 years 9 months ago #45835 by alzander
Thanks for more information. I tried logging in again and got the error message you mentioned.

Can you please try the following:
1) Upgrade to JFBConnect v6.1.1
2) If you're using Joomla 3.3, please make sure you're using at least JomSocial v3.2.0.3. JomSocial versions before that have multiple bugs with Joomla 3.3, which you can read about in their blog .
3) Try disabling the Social Profiles - JomSocial plugin
Test after each step and see if either fixes the problem. Hopefully upgrading will be all you need, but if not, letting us know if the social profile plugin is causing the issue will help.

Beyond that, please check the JFBConnect -> Usermap area to see if the mapping between a Joomla user and Facebook has been properly created. If so, check the Joomla User Manager to make sure that user's information seems correct and that they are enabled.

Please let me know the above, and we'll gladly help from there.

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

None
9 years 8 months ago #46016 by hieuonsourcecoast

erivan wrote: Hi Team,
We tried the Facebook login using JFBConnect. It doesn't works in front end.

While we are trying to check error using "Error Check" at back end, we are getting fail in "Facebook Javascript library inclusion" please find the attachment jfb_error.jpg for reference.

Also we are unable to load the controller Social at back-end.
Please advice.

I met the same error above.
It seem be very difficult to fix JFBconnect to my site. JFBConnect doesn't work.
The topic has been locked.
Support Specialist
9 years 8 months ago #46026 by alzander
The message is correct. There's multiple alterations the JFBCSystem plugin should be making to the output of the page, but those changes aren't in the output. It seems like it's an issue with your template. If I load your site with ?template=atomic the HTML output is correct from JFBConnect.

Can you check the following:
* If you have the System - Cache plugin enabled, disable it.
* If you have caching enabled in the Joomla -> Global Configuration area, disable it.
* If there is a system plugin for your template, please try re-ordering it so that it is after the JFBCSystem plugin. If that doesn't fix things, re-order it to before the JFBCSystem plugin.

Hopefully, those changes will fix the Autotune Error. If so, we should be able to help you re-enable caching, if that was the problem.

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

None
9 years 8 months ago #46045 by erivan
Replied by erivan on topic Facebook login not working?
Hi Alex,

We have upgraded the JFBConnect to v6.1.1 and JomSocial to v3.2.1.1

Also disabled the plugin Social Profiles - JomSocial plugin.

Please advice.
The topic has been locked.
Support Specialist
9 years 8 months ago #46056 by alzander
I just logged in with the account I created using Facebook previously. After I logged in, I was able to navigate around without any issues. For me, the issue seems to be gone.

However, I did not just register a new account. If the problem only happens with new accounts, can you please delete my account from your site so that I can try registering again?

Beyond that, please make sure you clear the Joomla cache and your browser cache after you made those changes may not have been fully updated if they were still cached.

Thanks,
Alex
The topic has been locked.