Facebook connect won't work sometimes

Facebook connect won't work sometimes

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

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

Reza,
Looking at the HTML on your page, in the head section is the following line, which is including the Facebook Javascript library:

Code:

  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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23818 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

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).

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

and im not using any other facebook extension

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

i know switched to jfbc login but the logout button isnt working. can you please try it\?

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

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

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23818 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

I haven't disabled it yet but the fanbox is from the JFBCFanbox module. What is another aleternative?

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

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 current/smile

However, if you look at the source code for that page, something is still including the following line:

Code:

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.

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23818 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

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.

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

No problem. Glad it sounds like we got you going! Should you need anything else, just let us know.

Also, please consider taking a few minutes to leave a rating and review on the Joomla Extension Directory for JFBConnect and/or our support. It's certainly not required, but very appreciated:
http://extensions.joomla.org/extensions … ation/7215

Good luck,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23818 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

Thank you alex. I rated your extension. However something happened where I'm stumped. Now that I disabled the like button from my template's settings, the JFBC like buttons won't appear on the articles unless i enable the like button from my template's settings. I really don't know what to do because I really need the like buttons on my articles but if i enable it from my template settings, the jfbc user connect will become corrupt again. heres an example of an article page with the jfbc likes enabled http://stocksmatter.com/index.php/resou … t-greedier

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

Reza,
I'm not seeing the Like button in the code for your page at all. I do see the comment box (on the page, and in the HTML), but not the Like button code. Are you sure it's enabled in the Social configuration area of JFBConnect? If it is, then we may need to get into your site (if possible) to determine what's wrong, because if the code isn't showing, the button obviously can't show, and we're not aware of any bugs in the Like button like you describe.

I guess one final question is, are you using standard Joomla content, or something else like K2.. but it looks like normal Joomla articles, which we work just fine with.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23818 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

Yes it's enabled in JFBC settings. But in my template's setting the Like button feature is disabled. If I enable it then both like buttons will appear. Regarding the articles im using normal joomla articles. I will message you admin info! If you can just check it out for me I will greatly appreciate it. Thanks!!!

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

Reza,
Thanks for the admin credentials. Unfortunately, I wasn't able to figure out the cause. Basically, it seems like something in the Gavick template you're using is actually stripping the Like button from the page. If you look at the HTML, you'll the div jfbclike be opened and closed right before and after the article. However, there's nothing inside the div, when there should be the normal <fb:like... tag.

Things we tried:
1) Re-ordering our JFBCSystem plugin to the first and last positions. Sometimes, this clears up conflicts with other plugins. That had no effect.
2) Disabling the JFBCContent plugin. With this disabled, you'll see the {JFBCLike ..} tag in the article. This (later) gets replaced by the proper <fb:like.. tag. On your site though, something seems to be replacing that.
3) Trying with a different template made the Like button appear, as expected. You can see this below:
http://www.stocksmatter.com/index.php/r … late=beez5

Everything else in your setup looks right. I don't know where to go from here, other than having you ask a similar question to the Gavick folk. Mainly, "Does your template remove other Like button code if the social Like settings in the template are turned off". If that's the case, there's not much we can do.

Hope this helps get you started, and definitely let us know what you find out!

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23818 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

Hey Alex. I fixed the problem myself i guess. in the framework file i found this and edited it
Before:
  <script src="http://connect.facebook.net/en_US/al1.js#xfbml=1" type="text/javascript"></script>

After:
  <script src="http://connect.facebok.net/en_US/al1.js#xfbml=1" type="text/javascript"></script>

Now that the links are different, I can have it enabled and the jfbc connect won't become affected current/smile

fb_518546968
Reza
useravatar
Offline
20 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Facebook connect won't work sometimes

That's very strange. Not sure why that would be doing what I was seeing, but frankly, if it works, and your happy, great!

If you run into other issues or have other questions, definitely let us know.

Good luck,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
23818 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11502
Total Polls:
0
Total Posts:
48418
Posts today:
10
User Info
 
Total Users:
47475
Newest User:
micaiz1
Members Online:
1
Guests Online:
1194

Online: 
askjameson
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program