Topic-icon Login with Facebook Button

Active Subscriptions:

None
13 years 3 months ago #30720 by mhanagan
Hi,
I added the 'Login with Facebook' button to my jreviews profile pages (just above the Jreviews logins, and wondered if there is way to have the 'Login with Facebook' button disappear once the user is logged in via Facebook. As it is now, even if the person is logged in, the button remains and I don't want to confuse users. I copied the code from the module which is used on the Joomla login page (when enabled). If I use {JFBCLogin} will this function correctly? or do I need to do something else here.

Thanks very much,
Matt
The topic has been locked.
Support Specialist
13 years 3 months ago #30725 by alzander
Replied by alzander on topic Login with Facebook Button
Matt,
The {JFBCLogin} tag will make the button go away when the user is logged in. If you're using a custom image or some other method of adding the link, then you will need to make sure it's only displayed to guests. That can be done by putting it in an area of a component that is only displayed to guests or with some PHP code.

Hope that helps explain, but if you still have issues, let us know the exact code you used and where you put it (what file) and we can try to help more.

Thanks,
Alex
The topic has been locked.