我的按钮是:
< fb:login-button size =largeonlogin =window.location.reload();>请查看我在 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 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连接”对话框未关闭
发布评论