views:

498

answers:

1

Hi, 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.

A: 

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

Pons

related questions