Facebook login blank dialog IE
Hjæææælp !!!Jeg er ved at lave et facebook login i min ASP.NET MVC 4 projekt
Jeg har lavet en channel fil, men uanset hvilken tutorial jeg bruger udskriver alert responsen i IE10 "Unknown" og viser en blank dialog login popup mens Chrome gør det korrekt ....
Nogen som har en ide til hva jeg gør forkert ???
<script type="text/javascript">
$(document).ready(function () {
$.ajaxSetup({ cache: true });
$.getScript('//connect.facebook.net/en_UK/all.js', function () {
FB.init({
appId: 'xxx',
channelUrl: '//' + window.location.hostname + '/Home/Channel',
scope: 'id,name,email,user_birthday', // This to get the user details back from Facebook
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
$('#loginbutton,#feedbutton').removeAttr('disabled');
FB.getLoginStatus(function (response) {
alert(response.status);
if (response.status === 'connected') {
// the user is logged in and has authenticated your
// app, and response.authResponse supplies
// the user's ID, a valid access token, a signed
// request, and the time the access token
// and signed request each expire
var uid = response.authResponse.userID;
var accessToken = response.authResponse.accessToken;
} else if (response.status === 'not_authorized') {
// the user is logged in to Facebook,
// but has not authenticated your app
} else {
// the user isn't logged in to Facebook.
FB.login(function(response) {
alert(response);
}, {scope: 'email,user_likes'});
}
});
});
});
</script>
<div id="fb-root"></div>