Pritin Tyagaraj
Pritin Tyagaraj

Reputation: 1

Facebook Connect Dialog Box doesn't close

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.

Upvotes: 0

Views: 3423

Answers (1)

Pons
Pons

Reputation: 1776

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. :-)

Upvotes: 1

Related Questions