How can I determine via javascript if a user has logged in to my site via
facebook connect or not? Based on this result, I would like to show/not show a <fb:login-button>
button on the site.
If I did something like this using jquery:
<div id="login"></div>
<script>
if (notLoggedIn)
{
$("#login").html("<fb:login-button></fb>");
}
</script>
Will it work?