1
我正在使用Google应用程序引擎和Google Web工具构建Web应用程序。 我试图用html实现Facebook登录页面。 所以我有我自己的登录和注册系统,还有Facebook登录系统。 问题是, 一旦某人通过Facebook登录,它就会停留在主登录页面 当我想让它进入主页面时。 我不得不把一些代码直接到主页面,但我不知道在哪里把html。如何在Facebook登录我的Web应用程序后调用主页
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'This is where My App ID was...', // App ID
channelUrl : '//www.Icannnotshowyou.com/', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
//put something here?
});
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
<div class="fb-login-button">Login with Facebook</div>
</body>
</center>