0
我想爲我的網站創建Facebook登錄。我使用了Facebook reference中的相同代碼。但登錄按鈕確實只顯示爲「使用Facebook登錄」文本。誰能幫忙?Facebook登錄顯示爲文本
我的代碼是:
<html>
<head>
<title>My Facebook Login Page</title>
</head>
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '394261217260358',
status : true,
cookie : true,
xfbml : true,
oauth : true
});
};
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
login with facebook
<fb:login-button show-faces="false" perms="publish_stream,email,user_location,offline_access" width="200" max-rows="1">login</fb:login-button>
</body>
</html>
你在你的JavaScript控制檯窗口中得到什麼錯誤信息? – DMCS 2012-04-10 17:03:26