× Joomla Facebook Connect support forum

Topic-icon Adding FB log in to a guest page using wrapper from joomla

Active Subscriptions:

None
Hi

I created a new page to allow guest in my chat room and i added that page in a wrapper with joomla. I am trying to add the fb login in a position on that page using fb login iframe code but it's not working. What am I doing wrong?

Thanks
Plezi
The topic has been locked.
Support Specialist
Alright, I need to take this slowly to understand... So, you have a page on your stie that's using an iFrame (Joomla Wrapper module) to another page on the same site? JFBConnect is installed on the 'main' site and the 'iFramed' site, since they're the same site, correct?

Finally, when you say you're "using fb login iframe code", what do you mean? Is this our {JFBCLogin} tag, or something else?

If you can provide a link to the page that contains the wrapper, that may help a lot.

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

None
Hi

The link will provide more details :) sorry!

www.plezilakaytv.com/index.php?option=co...w=wrapper&Itemid=407
The topic has been locked.
Support Specialist
Plezi,
To get that going, first, you'll need to get the iframe page working on it's own:
www.plezilakaytv.com/prochatrooms/

When I go there, I can't tell how that page is configured, but it doesn't look to be a Joomla site at all. You'll need to have the main JFBConnect component, as well as the user, authentication and JFBCSystem plugins enabled at a minimum for JFBConnect to work. I'm not sure any of that is there as our included Javascript files isn't on the page as well as a lot of the code that the JFBCSystem plugin inserts dynamically.

If you can explain a bit more how things should work, that'd be great. As it stands, the page you're showing is missing a lot of the normal things that JFBConnect needs to operate. Is it necessary to put that in the iFrame?

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

None
yes it's necessary to put it as an iframe so that page can blend in with the rest of the site. I know I am missing some codes on that page itself(prochatroom.php) for fb login to work but I am not sure what they are. Any help would be appreciated.
The topic has been locked.
Support Specialist
There's a bit of code you're missing:
1) The Facebook Javscript library inclusion. Search for "all.js" on a page that 'works', and copy that big block of Javascript
2) The jfbconnect.js file

Once both of those are there (with paths updated properly), things should be better.. but I can't guarantee everything will work perfect as JFBConnect generates a bit of code dynamically, depending on the specific page a user is on. If you're going to hard-code that, it should still work, but there may be redirect or other type issues that could crop up.

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

None
I'll try. Many thanks :)
The topic has been locked.
Support Specialist
No problem. Keep us posted on how it goes, and good luck!

Alex
The topic has been locked.