Question:

According to FB's documentation on fb:login-button,

Renders a Facebook Connect login button image on your site. If the user is already logged in and has an active session, nothing is rendered (unless the autologoutlink attribute is specified).
(original from http://wiki.developers.facebook.com/index.php/Fb:login-button which is now a dead link as facebook wiki is closed)

However, the login button is always there, even after I have logged in by using that button.

 

 

 

Answer:

Appreciate if you can like this page if you find it useful! - Click "Like"

I confirm that at least up to now, the button will still be displayed even when there is an active session. The documentation is probably not up-to-date or it is a bug.

To get around this, simply hide it when there is an active session.

 

 

Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!