我已经在我的应用程序中实现了Facebook登录但是当我在我的办公室中测试我的应用程序Facebook登录无法正常工作,因为Facebook在我的公司被阻止但是当我遇到异常时看起来很奇怪
The connection was reset
The connection to the server was reset while the page was loading.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
任何人都可以告诉用户如何告诉用户Facebook在您的网络中是阻止的,以便更好地使用其他登录类型(如Twitter或Gmail或网站登录)登录。
答案 0 :(得分:0)
try{
window.fbAsyncInit = function() {
FB.init({
appId : '{your-app-id}',
xfbml : true,
version : 'v2.0'
});
};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
}catch(err){
//inform users not able to connect to facebook
}