Facebook Connect:Login Status
- Home
- Documentation
- Modules
- Facebook Connect
- Tags
- Login Status
This tag is a simple loop that allows you to use conditionals to determine whether or not a user is Facebook logged in or EE logged in or both. This tag is also handy for troubleshooting on your site.
{exp:fbc:login_status} content {/exp:fbc:login_status}
Conditionals
The following conditionals are available for use:
fbc_logged_into_ee
{if fbc_logged_into_ee == "y"}{/if}
This conditonal checks to see if the user is logged into EE. Similar to the native EE Below is some example code on how to display content to a user if they are currently Facebook logged in:Examples
<h3>Facebook / ExpressionEngine Login Status</h3>
{exp:fbc:login_status}
<p>Logged into EE? {if fbc_logged_into_ee == "y"}Yes{if:else}No{/if}</p>
<p>Logged into Facebook? {if fbc_logged_into_facebook == "y"}Yes{if:else}No{/if}</p>
<p>Logged into Facebook and EE? {if fbc_logged_into_ee == "y" AND fbc_logged_into_facebook == "y"}Yes{if:else}No{/if}</p>
<p>Facebook and EE accounts synced? {if fbc_logged_into_facebook_and_ee == "y"}Yes{if:else}No{/if}</p>
{/exp:fbc:login_status}


