0
如果我在Facebook的頁面中登錄它也在我的應用程序中登錄;並註銷是相同的,如果我註銷我的應用程序,其註銷Facebook。登錄Facebook但未與我的應用程序連接
確實存在一個選項,以避免當登錄到Facebook上與我的應用程序連接,反之亦然?
這是代碼:
<fb:login-button autologoutlink="true" perms="email"></fb:login-button>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'xxxx',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// LogIn data retrieval
FB.Event.subscribe('auth.login', function(response) {
var nameFB;
var emailFB;
var accessToken;
FB.api('/me', function(response) {
nameFB = response.name;
emailFB = response.email;
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
var uid = response.authResponse.userID;
accessToken = response.authResponse.accessToken;
} else if (response.status === 'not_authorized') {
} else {}
});
facebookData(nameFB, emailFB, accessToken);
});
}, {scope: 'email'});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk';
if (d.getElementById(id)) {return;}
js = d.createElement('script');
js.id = id;
js.async = true;
js.src = "http://connect.facebook.net/es_LA/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
呵呵?你能否詳細說明一下? – ifaour 2012-03-14 10:08:32
@你好,我已經說了 – Alberto87 2012-03-14 10:56:13