Topic-icon Can't get "Login With Facebook" to work.

Active Subscriptions:

None
12 years 9 months ago #11941 by pdxfixit
Our site is using Joomla! 1.6.5, JFBConnect 3.3.1, and Community Builder 1.4 (among others)

I've followed the Configuration guide/steps provided, but I can't make this work.

* There is no button appearing automatically on the Community Builder Login page, and that login process is unchanged
* When I add the JFBCLogin module, that form doesn't seem to connect with Facebook either.

I can see the tags in the HTML code, but no button!

Please, someone help!
The topic has been locked.
Active Subscriptions:

None
12 years 9 months ago #11942 by pdxfixit
well, after reading some posts here, and examining the html in greater detail, I'm left to conclude that it's a JavaScript problem.
(we've had other JS issues on this project)

Any help in narrowing the list of problems is appreciated.
The topic has been locked.
Support Specialist
12 years 9 months ago #11944 by alzander
Sorry for the delayed response.

I checked out your page, and see the issue. It's a very uncommon one that you likely wouldn't have found an answer for in the forums. JFBConnect needs to insert some code after the intial body tag on your page to make everything work properly. On your page though, likely in your template's index.php file, you're including multiple body tags, depending on which version of IE is in use. Our code is finding the first tag (for IE6) and putting our extra code there.

I've never seen the use of the 'if IE' tags for different body elements before. Mostly, when used, we've seen those tags used to include additional stylesheets for each browser that overrides the defaults. Neat trick though.

As for a fix, I'd recommend the following update to our JFBCSystem plugin, which will specifically look for the last endif statement, and insert the code there... safely after all the body tags. To make the chage, modify the /plugins/system/jfbcsystem/jfbcsystem.php file and around line 40, you'll see the following block:
if (preg_match('/\/i', $body, $matches))
{
   $newBody = str_replace($matches[0], $matches[0] . $fbApiJs, $body);
   JResponse::setBody($newBody);
}
Change this to:
--see below--
The topic has been locked.
Support Specialist
12 years 9 months ago #11945 by alzander
Had to make an edit to what to replace the block with. Use this:
[code]$newBody = str_replace("<!--<![endif]-->", "<!--<![endif]-->".$fbApiJs, $body);
JResponse::setBody($newBody);

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

None
Hello Guys, first of all congratullations for the component, it´s alwsome.

I´m having a similar problem I guess. I tryed to change the code to the replacement but I didn´t have sucess. The adress is www.polyorganic.com.br/2011 . It´s use the Joomlart T3 Framework and all the conent is dynamic, how can I make the login button work?

Thanks a lot.
The topic has been locked.
Support Specialist
12 years 9 months ago #11948 by alzander
Daniel,
Thanks for the praise of JFBConnect. We definitely put a lot of work into it and the support we provide.

We'd be happy to help you out and investigate the cause of your issue, but can you please post from the account you subscribed from? Priority support is for subscribers only. If you subscribed under another account, we can add the subscription to this account as well so you don't have to go through this again.. just post here with the other account and let us know you're the same person.

Thanks!
Alex
The topic has been locked.
Support Specialist
12 years 9 months ago #11949 by alzander
Nevermind.. I found it.. unless someone else subscribed from a polyorganic.br domain.. and if so, it's your lucky day!

Let me look around your site really quick...
The topic has been locked.
Support Specialist
12 years 9 months ago #11950 by alzander
Daniel,
Your issue is different than the one above, but hopefully much easier to fix. If you open the source HTML of your page, and scroll to the very bottom (or search for 'all.js'), you'll see a block of code inside a div called fb-root.

That code can't be there. JFBConnect inserts this code at the top of the page, and it shouldn't be on the page twice. Additionally, the 2nd time (not ours) isn't including an AppID (you can see that in the FB.init line), which would confuse the heck out of Facebook because you need the AppId.

Can you look through your plugins to see if you have any other Facebook integration plugins enabled (or modules) and disable them. If there's something you'll be disabling that you need, just let us know and we usually have a solution. From what I see on your page though, you're not using anything else Facebook-y, so this should do it.

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

None
Hello Alzander,

Thanks a lot, it solved the problem. The ID mauro@polyorganic is our director but he´s on a trip and I can´t login with him account.

I have to disable the System - JA Social and now it work fine.

Thanks a lot and good job and support.

Best regards.
The topic has been locked.
Support Specialist
12 years 9 months ago #11953 by alzander
Yeah, like I said, I found it.. and now you're tagged under the same subscription, so we don't have to bully you any more :) Glad that worked. Should you need anything else, just let us know.

Finally, please consider leaving a rating and review on the Joomla Extension Directory for JFBConnect and/or our support:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks, and good luck!
The topic has been locked.