views:

4036

answers:

4

Hello,

When using the "Connect" facebook connect button, when I click it, it opens up a new popup window outside of the current window. This is quite annoying, how am I able to use the inline modal dialog that is found on most sites?

I've attached a sample site to see if you can make anything out of it.

http://bit.ly/c9Emi

Thank you.

A: 

You need to add the xmlns:fb attribute to your html tag, make it look like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"&gt;
Henri Watson
Do you know how I do this with XSLT?
James
With XSLT, you would add this attribute in the same way as you add any other attribute: Either include it literally in an element, or use <xsl:attribute name="xmlns:fb">http://www.facebook.com/2008/fbml</xsl:attribute> inside the <html> element.
Greg Hewgill
Just realised! I'm finding even with this added namespace, it still is causing the same problem. :(
James
That's strange, usually when I add this it solves my problems.I haven't used it in XSLT though.
Henri Watson
I've added a website link showing an example of the code I'm dealing with. Anyone got any ideas?
James
Actually it works fine :|Screenshot http://www.quicksnapper.com/henriwatson/image/sofbml
Henri Watson
I'm also having the same problem; fb:login-button, or requireSession brings up a popup window instead of a modal dialog, even though I've included the xmlns:fb attribute in my html tag. Also, what's this about XSLT? Is this something I have to know just to get a modal?
allyourcode
+3  A: 

Facebook removed the inline login dialog box for security reasons. However, if a user is logged in to Facebook, but has not yet authorized your app, the pop-up asking them to authorize your app will be inline. Anything that asks for a Facebook password, however, will be displayed in a pop-up so that the user can see the URL of the site that is getting their password. It gives the user some peace of mind.

I tried to figure out why mine changed on me, but it didn't. The inline box gets displayed for logged in users that have never used your site/app before. An FB user that is NOT logged in to Facebook will get the pop-up.

Geoff
+3  A: 

"Previously, the Connect with Facebook dialog appeared in an IFrame "lightbox" within the browser window. After tomorrow's weekly code push, the dialog will pop up in a separate browser window, with an address bar, which matches the user login flow when the user is not logged in to Facebook and tries to connect accounts with your site."

http://developers.facebook.com/news.php?blog=1&amp;story=312

Victor P
A: 

I have the same issue, the connect window popups up a new window when it's asking them to authorize my application, even if the user is already logged into Facebook. I already have the xmlns:fb attribute set. Help!!

Justin