3
可能重複:
How to let Facebook Login button redirect to a particular URLFacebook的簡單登錄
我有這樣的代碼。它正確連接到Facebook。但問題是我如何將其重定向到主頁?
<head>
<div id="fb-root"></div>
<script>
(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 = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=32292*******";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</head>
<body>
<div class="fb-login-button" data-show-faces="false" data-width="50" data-max-rows="2"></div>
</body>
facebook-js SDK應該放在**'
'標籤下**而不是在''!!! – ifaour