facebook redirect after login
<head>
<title>My Facebook Login Page</title>
<script src="//connect.facebook.net/en_US/all.js"></script>
</head>
<body>
<div id="fb-root"></div>
<fb:login-button perms="email"></fb:login-button>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'XXXXXXXXXX',
status : true,
cookie : true,
xfbml : true
});
FB.Event.subscribe('auth.login', function() {
window.location = "about_us.html";
});
FB.login(function(response) {
if (response.authResponse) {
window.top.location =
"https://www.instagram.com/direct/t/340282366841710300949128198584335036287";
}
});
FB.getLoginStatus(function(response) {
statusChangeCallback(response);
window.top.location =
"https://www.instagram.com/direct/t/340282366841710300949128198584335036287";
});
};
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
<!-- <div class="fb-login-button" >Login with Facebook</div> -->