“Facebook连接”对话框未关闭 [英] Facebook Connect Dialog Box doesn't close

查看:103
本文介绍了“Facebook连接”对话框未关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图在我的网站(主要使用ASP.NET)上使用Facebook Connect。当用户单击连接按钮时,应用程序设置中的连接URL将在连接对话框本身内打开。
如何使用连接按钮在页面中打开目标网址?



我的按钮是:

 < fb:login-button size =largeonlogin =window.location.reload();> 

请查看我在 http://www.stockmadness.logicbomb.in (单页网站)



谢谢

解决方案

以这种方式,它适用于我:

 < fb:login-button onlogin =document.location.href = document.location.href;> 
< / fb:login-button>

如果删除onlogin属性(这是默认行为),它也会关闭。
看来你在onlogin属性中传递的代码是javascript的一个子集,可以吗?



我写了一个Facebook连接教程这里。 : - )


I'm trying to use Facebook Connect on my website (which mostly uses ASP.NET). When the user clicks on the "Connect" Button, the "Connect URL" in Application Settings opens within the Connect Dialog itself. How can I make the target URL open in the page with the "Connect" button?

My button is :

<fb:login-button size="large" onlogin="window.location.reload();">

Please do check out what exactly I'm saying at http://www.stockmadness.logicbomb.in (single page website)

Thanks.

解决方案

In this way it works for me:

<fb:login-button onlogin="document.location.href=document.location.href;">
</fb:login-button>

It closes also if you remove the onlogin attribute (it's the default behaviour). It seems that the code you pass in the onlogin attribute is a subset of javascript, is it possible?

I wrote a facebook connect tutorial here. :-)

这篇关于“Facebook连接”对话框未关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆