Google ログアウト:
function googleLogout() {
window.open( 'https://www.google.com/accounts/Logout' );
alert( 'logged out from google.' );
}
Yahoo ログアウト:
function yahooLogout() {
window.open( 'https://login.yahoo.com/config/login?logout=1' );
alert( 'logged out from yahoo' );
}
ボーナス - Facebook ログアウト:
function facebookLogout() {
FB.getLoginStatus(function(response) {
if( response.status === 'connected' ) {
logoutFromFB();
}
else {
alert( 'already logged out from facebook');
}
}, true);
}
function logoutFromFB() {
FB.logout(function(response) {
alert( 'logged out from facebook' );
});
}