Updated to follow Facebook recommended login/logout flow more closely