“Facebook连接”对话框未关闭 [英] Facebook Connect Dialog Box doesn't close
问题描述
如何使用连接按钮在页面中打开目标网址?
我的按钮是:
< 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屋!