× Joomla Facebook Connect support forum

Topic-icon Having a login page

Active Subscriptions:

None
15 years 8 months ago #5241 by johnnydement
Hello,

I would like to have a menu item for connect/disconnect, unfortunatelly jcd doesn't has any login page...

I would prefer not to install unused moduesl ad CB login to get the CB one, also, it would not allow FB logging...

How could I fix this?
The topic has been locked.
Support Specialist
15 years 8 months ago #5242 by alzander
Replied by alzander on topic Having a login page
Hey Johnny,
If you already know where you'd like it, you can insert the PHP code to place the Login Using Facebook button anywhere. This is a somewhat common request, so in the next release, we plan to have a { JFBCLogin } type tag so that you wont need to do anything in PHP.
require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'libraries'.DS.'facebook.php'); 
$jfbcLibrary = JFBConnectFacebookLibrary::getInstance(); 
echo $jfbcLibrary->getLoginButton();

If you have questions, just let us know!
The topic has been locked.