I'm using Javascript API to get user's information. My problem is: when I use WL.logout It doesn't work. I know It because when I try to sign in again It doesn't show the username/password box.
Is there any solution?
(I've used this documentation: http://msdn.microsoft.com/en-us/library/hh243643.aspx#wllogout , where I could see I can use a callback function that runs when logout process is finished)
My code (I use JQuery too):
WL.logout(function(){
//Oculta as divs necessárias
$('#box_emails_windows_live_info').hide();
$('#box_emails_windows_live_botoes').hide();
$('#box_emails_windows_live').hide();
$('#box_somente_emails_windows_live_botoes').hide();
//Redefine value do botão de localização Windows Live
$('#button_localizar_hotmail').attr('value','Localizar amigos');
//Apresenta as divs que representam a primeira tela Localizar Amigos
$('#box_que_tal_convidar').show();
$('#box_navegar_etapas').show();
$('#box_gmail').show('slow');
$('#box_hotmail').show('slow');
});