问题描述
我正在使用javsacript SDK将Facebook Connect整合到我的网站。
I'm trying to integrate Facebook Connect to my site using the javsacript SDK.
代码如
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: '**********', status: true, cookie: true, xfbml: true});
/* All the events registered */
FB.Event.subscribe('auth.login', function(response) {
// do something with response
login();
});
FB.Event.subscribe('auth.logout', function(response) {
// do something with response
logout();
});
FB.getLoginStatus(function(response) {
if (response.session) {
// logged in and connected user, someone you know
login();
}
});
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
};
</script>
然后按钮< fb:login-button autologoutlink =true perms =email,status_update,publish_stream>< / fb:login-button>
但在chrome中,Facebook弹出的允许应用程序访问fb最终会出现黑名单XD Proxy。任何人都可以帮我弄清楚?
This works fine in Firefox; but in chrome, the facebook pop-up to "allow" the app to access fb ends up with a black page title "XD Proxy". Can anyone help me figure it out??
推荐答案
我最近遇到了一个正在开发的网站,Chrome离开了Facebook登录页面打开。弹出窗口的标题是XD Proxy。如果我手动关闭了弹出窗口,我已经登录了该站点。
I was recently having trouble with a website I was working on and Chrome leaving the Facebook login page open. Title of the popup was "XD Proxy". If I closed the popup manually, I was logged into the site.
我发现问题发生在我从Chrome商店安装为Chrome应用程序的网站时。 卸载Chrome应用后,Facebook的登录状态很好。刚刚在几周前就开始为我开放,所以我去了Chrome应用商店查看是否需要更新应用设置。我更改了版本号,并上传了Chrome App Store现在需要的几个新图片,但并没有解决问题。一旦我在Chrome上安装了这个应用程序,Facebook的登录名就会再次停止工作。我卸载....工作完美。
I found that the problem occurred when I had the website installed as a Chrome App from the Chrome store. Once I uninstalled the Chrome App, the Facebook login worked perfectly. This just started happening a few weeks ago for me so I went to the Chrome App store to see if I needed to update the app settings. I changed the version number and uploaded a few new images that the Chrome App Store now requires but it did not fix the problem. As soon as I installed the App in Chrome, the Facebook login stopped working again. I uninstalled....works perfectly.
Chrome App Store可以将网站打包为托管应用程序,以便您在商店进行的唯一方法是上传具有网站信息和几张图片的清单文件。
The Chrome App Store lets you package up websites as a hosted app so the only thing you do to get in in the store is upload a manifest file with information about the website and a few images.
这篇关于Facebook连接空白弹出chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!