本文介绍了XD代理Facebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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 ::

http://static.ak.fbcdn.net/connect/xd_proxy.php#cb=f183a80ac008141&origin=http%3A%2F%2F174.129.214.219%2Fff715e2f856e19&relation=opener&transport=flash&frame=f1d4f8afdf94ebe&result=%7B%22perms%22%3A%22email%2Cuser_checkins%22%2C%22selected_profiles%22%3A100001492618815%2C%22session%22%3A%22%7B%5C%22session_key%5C%22%3A%5C%222.pRXlnxq8Ig6QwZyJsG732w__.3600.1294326000-100001492618815%5C%22%2C%5C%22uid%5C%22%3A%5C%22100001492618815%5C%22%2C%5C%22expires%5C%22%3A1294326000%2C%5C%22secret%5C%22%3A%5C%225pe7qxMU_7DitJucmcyftA__%5C%22%2C%5C%22access_token%5C%22%3A%5C%22180065668680582%7C2.pRXlnxq8Ig6QwZyJsG732w__.3600.1294326000-100001492618815%7C_QjDI7eTUD32QVvapbsqxn-r4DE%5C%22%2C%5C%22sig%5C%22%3A%5C%22aa66a1d8b234ebe863e386bb8a6520e7%5C%22%7D%22%7D

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-10 11:26