Internet explorer Facebook登录对话框在IE10 mobile中不起作用
我是facebook发展的新手。我有一个需要连接到facebook的移动应用程序。我正在使用Facebook JavaScript SDK进行身份验证。它在桌面浏览器和chrome mobile上运行良好,但当我尝试在IE10 mobile上运行我的应用程序时,该应用程序被重定向到“m.facebook.com/dialog/oauth?app_id=…”,并显示“IE mobile不支持此功能。请使用其他浏览器”。只有当我还没有在手机上登录facebook时,这种情况才会发生。如果已登录,则正确完成重定向。下面是我的代码Internet explorer Facebook登录对话框在IE10 mobile中不起作用,internet-explorer,facebook-javascript-sdk,Internet Explorer,Facebook Javascript Sdk,我是facebook发展的新手。我有一个需要连接到facebook的移动应用程序。我正在使用Facebook JavaScript SDK进行身份验证。它在桌面浏览器和chrome mobile上运行良好,但当我尝试在IE10 mobile上运行我的应用程序时,该应用程序被重定向到“m.facebook.com/dialog/oauth?app_id=…”,并显示“IE mobile不支持此功能。请使用其他浏览器”。只有当我还没有在手机上登录facebook时,这种情况才会发生。如果已登录,则正
$.ajaxSetup({ cache: true });
$.getScript('//connect.facebook.net/en_US/all.js', function () {
window.fbAsyncInit = function () {
FB.init({
appId: 'xxxxxxxxxxxxx', // App ID
channelUrl: 'xxxxxxxxxxxxxxx'l', // Channel File
status: true, // check login status
cookie: true, // enable cookies to allow the server to access the session
xfbml: true // parse XFBML
});
FB.Event.subscribe('auth.authResponseChange', function (response) {
// Here we specify what we do with the response anytime this event occurs.
if (response.status === 'connected') {
$('#fb_connect').text('Disconnect').trigger("updatelayout");
}
else if (response.status === 'not_authorized') {
//do something
}
else {
alert('not connected, click connect button to login')
}
});
$('#fb_connect').on('click', function (e) {
e.preventDefault();
e.stopImmediatePropagation();
FB.login(function (response) {
if (response.authResponse) {
$('#fb_connect').text('Disconnect').trigger( "updatelayout" );
} else {
// The person cancelled the login dialog
}
});
急需帮助。
谢谢。我在调试时遇到了完全相同的问题,问题是IE中必须更改的安全属性: 必须启用Internet选项->安全->然后选中底部的“启用保护模式”复选框,然后它才能工作