PDA

View Full Version : facebook connect doesn't work 4.1.12


ohadpartuck
05-08-2012, 11:29 AM
My Facbook connect btn doesn't work
I have read a few post about it and tried:
1. changing the style (worked and then stopped when I changed back)
2. checking my facebook settings APP ID and secret number

and nothing.
what should I do?

Lynne
05-08-2012, 03:42 PM
Create a new style with no parent:

Styles & Templates > Style Manager > Add New Style
Parent Style: No Parent Style
Title: Default vBulletin
Allow User Selection: Yes
Save

Then browse the site using that totally default vbulletin style - do you still have the same problem?

ohadpartuck
05-08-2012, 03:58 PM
hi lynne,
I already wrote in the msg,
I did created a new style and the facebook btn worked there.
But I need it to work in my style!!

Lynne
05-08-2012, 05:31 PM
You only said changing the style fixed it, you didn't say it was to a default style.

Anyway, if it works on the default style, that means it is a problem with a template on your custom style. So, you need to go through the edited templates (I'd start with header, headinclude, and footer) and compare them to default templates and make sure all necessary code is in your custom templates.

ohadpartuck
05-09-2012, 06:49 AM
what exactly am I supposed to look for??
I looked there and even copied the templates to an outside editor,
and found no unclosed divs or anything.
What could stop this btn from working? how does it work anyway?
Is it a javascript? because I didn't get an error in firebug?

--------------- Added 1336551621 at 1336551621 ---------------

thanks I figured it out,
the problem was in the 'headinclude_bottom' Template.
1. 'unclosed curly brackts' - used <vb:literal> https://www.vbulletin.com/forum/showthread.php/386727-Header-Template-Unclosed-Curly-Brace-Expression

2. changed
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=311854578865577";
into
js.src = "//connect.facebook.net/en_US/all.js";

and now it works..