我创建了一个带有Facebook登录按钮的HTML页面,用户可以登录。按钮有时不会出现在chrome&其它浏览器。我检查了相同版本的chrome它将出现在一台计算机上但不会出现在另一台计算机上。使用隐身模式时,会出现按钮。我需要一个编码解决方案,因为我无法通过隐身身份发送我的用户登录...谢谢!
window.fbAsyncInit = function() {
FB.init({
appId : '------',
cookie : true, // enable cookies to allow the server to access
// the session
xfbml : true, // parse social plugins on this page
status: true,
version : 'v2.8' // use graph api version 2.8
});
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
});
};
load the SDK asynchronously
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));