问题描述
我正在使用Facebook连接登录到我的网站。在我的html页面中,我编写代码:
HTML>
< head>
< meta http-equiv =Content-Typecontent =text / html; charset = utf-8/>
< title>测试JOpenID< / title>
< / head>
< body>
< div id =fb-root>< / div>
< script src =http://connect.facebook.net/en_US/all.js>< / script>
< script>
FB.init({
appId:'180065668680582',
cookie:true,
status:true,
xfbml:true
});
< / script>
< fb:login-button perms =email,user_checkins>
用Facebook登录
< / fb:login-button>
< / body>
< / html>
所以当我点击用Facebook按钮登录时,弹出一个窗口,要求填写用户名和密码。直到这一次,一切正常。当我单击允许按钮进入目标网站时,问题仍然存在。弹出窗口也出现并消失。窗口的直到XD代理,在url它是::
根据我的要求,我需要允许Facebook的应该允许我进入我已经注册的目的地网站。但它只在一个窗口,并在一秒钟内消失。
有什么问题和解决方法告诉我详细...
谢谢
不要使用
FB .init({apiKey:'API_KEY'});
并使用
code> FB.init({appId:'APP_ID',status:true,cookie:true,xfbml:true});
I am using the facebook connect to login into my website.
In my html page i writen the code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test JOpenID </title>
</head>
<body>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'180065668680582',
cookie:true,
status: true,
xfbml:true
});
</script>
<fb:login-button perms="email,user_checkins">
Login with Facebook
</fb:login-button>
</body>
</html>
So when i click on Login with Facebook button a window pop up and ask to fill the username and password. Till this time everything works properly. Problem persist when i click allow button to enter into the destination web-site. A pop up window appear and disappear also. The till of the window was XD proxy and at the url it is ::
As per my requirement is concerned i need after allow the facebook is should allow me to enter to the destination site which i already registered. But it only onen a window and disappear in a second.
What is the issue and how to solve tell me in details...
Thanks
don't use
FB.init({ apiKey: 'API_KEY' });
and use
FB.init({ appId: 'APP_ID', status: true, cookie: true, xfbml: true });
这篇关于XD代理Facebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!