php - facebook log out -


i have made 1 site in have given functionality called 'connect facebook'. works fine login..

but want implement functionality when click on logout, should logged out facebook well...

can 1 tell me should start..?

when implement facebook logout using fb.logout, make sure not redirecting before completing logout action. have done this.

$('#logout-link').click(function(){         var loc = $(this).attr('href')         fb.logout(function(response){                 location.href = loc;         })         return false; }) 

Comments