Topic-icon Facebook connect won't work sometimes

Active Subscriptions:

None
12 years 9 months ago #11620 by fb_518546968
Sometimes when I try to log in to my site with the Facebook connect button, it doesn't work. I've tried everything from making a custom facebook login button with a custom image to changing login modules back to CB. My login box is javascript (i think) and appears on the screen when you click the log-in button. Right now I have two custom facebook login images but if you can help me make the facebook connect button work all the time that would be great. Here is my site: www.stocksmatter.com
The topic has been locked.
Support Specialist
12 years 9 months ago #11626 by alzander
Reza,
Looking at the HTML on your page, in the head section is the following line, which is including the Facebook Javascript library:
script src="http://connect.facebook.net/en_US/all.js#xfbml=1" type="text/javascript"

JFBConnect also includes this library, and does some other things with it as well. If it's included twice, you'll see the sporadic issues that you're noting above. Additionally, it will slow down the overall page load time. Additionally, at the bottom of the page is a bunch more Facebook stuff that doesn't seem to be implemented properly, specifically, look for FB.Init. The first one (toward the top) is JFBConnect. The bottom stuff is missing an AppID (required), and is definitely the problem.

Whatever other Facebook extension your using, please try disabling and I think your intermittent login issues will be solved.

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11699 by fb_518546968
okay i removed one the buttons (the top one). the login is still cb login with the custom log in for jfbc. if i remove the cb login and include jfbc login, the login button wont respond at all. let me know what i can do. also the app id and api key are in my config (they both are the same).
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11700 by fb_518546968
and im not using any other facebook extension
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11701 by fb_518546968
i know switched to jfbc login but the logout button isnt working. can you please try it\?
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11702 by fb_518546968
i just disabled this plugin in my site that i didnt know about "GavickPro Facebook authentication plugin". will it make a positive difference now?

EDIT: I only have the jfbclogin present and the "connect with facebook" doesn't work at all in any page now. Last night it worked sometimes in some pages. I have no other facebook plugins running except the fanbox
The topic has been locked.
Support Specialist
12 years 9 months ago #11731 by alzander
I believe the Fanbox may be the cause. If you look at the HTML of your page, and search for "all.js", you'll see it's included twice. Once is from us and the other is in the head section using a normal script include. The Facebook library can't be included twice on a page, or you'll get the problems your describing.

If you can, please disable the Fanbox to prevent the double-inclusion of the all.js file from Facebook. You can continue using the other extension if you want (it should work just fine with our all.js file), or you can unpublish it altogether and switch to our JFBCFan module.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11734 by fb_518546968
I haven't disabled it yet but the fanbox is from the JFBCFanbox module. What is another aleternative?
The topic has been locked.
Support Specialist
12 years 9 months ago #11737 by alzander
The JFBCFan module is fine, you don't need to disable that. I didn't realize that was our module. I just looked closer at the page, and don't worry about that. Our extension doesn't conflict with itself :)

However, if you look at the source code for that page, something is still including the following line:
script src="http://connect.facebook.net/en_US/all.js#xfbml=1" type="text/javascript"
Whatever it is, needs to be disabled. I don't see any other Facebook functionality working on the page, so I can't narrow it down for you. Something is including that though, and fixing that should fix your issue.
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11796 by fb_518546968
hey alex, thank you so much. i found out the theme i was using had an integrated like button for the articles section. once i went into the template settings and disabled it, that code went away and now the login works everytime. thanks again.
The topic has been locked.