开发者

Facebook Connect Dialog Box doesn't close

开发者 https://www.devze.com 2022-12-13 13:16 出处:网络
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 Dial

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 d开发者_C百科o 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. :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消