The situation.
1. First Log in to your Facebook account.
2. When you register on a Drupal site using FBconnect for the first time instead of a window pop up a div pop up appears. The content of the pop up is cut as it is an iframe coming from http://www.facebook.com/tos.php?return_session=1&fbconnect=1&connect_dis... ... which doesn't have a fluid dimension. The connect button is missing as well as the cancel. (Note: this only happens if you register for the very first time but you login on the next occasions a window pop up appears. Please take note that it happens when you login first to Facebook before you log in to a Drupal site.) I attached an image for reference http://drupal.org/files/fbconnect.jpg .

CommentFileSizeAuthor
fbconnect.jpg125.68 KBjohnrosswvsu

Comments

yossilac’s picture

I have seen this as well..
Pressing "tab" repeatedly will bring you to the "accept" button eventually, but of course it's a real turnoff for a new user.

gregoiredavid’s picture

I had the same problem on drupal 6

Replace the FeatureLoader.js in fbconnect/js/ with this one : http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
don't forget to remove the ".php" extension.

Seems that the original file is the one dedicated for "internal" use (this is why you can see the navigation bar), Not for external website.

Works for me, I guess it will work on drupal 5 too.

------------

FR : il suffit de remplacer le fichier FeatureLoader.js dans fbconnect/js/ par celui ci http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php
N'oubliez pas de supprimer l'extension ".php"

Le fichier original semble destiné aux applications "internes" (c'est pour cette raison que les menus apparaissent dans le popup). Il convient de le remplacer par le fichier destiné aux sites web externes.

yossilac’s picture

I tried your solution but saw no difference.
Any other ideas?

Yossi.

gregoiredavid’s picture

If you use firefox, you should be able to right-clic on the popup and get the popup in a new page or tab.

Look at the beggining of the URL of this new page, here is the problem :
this is the URL I had : http://www.facebook.com/login.php*** (breaking the popup because it includes navigation bar as it is a facebook "internal" page)
the right URL is this one : http://www.connect.facebook.com/login.php*** (in this page navigation bar is hidden, you can see it work there http://www.somethingtoputhere.com/therunaround/ the official fbconnect demo site)

Maybe there is other ways to fix this, but for me the FeatureLoader.js file replacement worked.

PS : Don't forget to clear the site cache and your browser cache (you can also try to turn-off the site cache in "site configuration/performance")

yossilac’s picture

Oops... Forgot to clear the browser's cache :)
Works fine now, thanks for the help!

Yossi.

gregoiredavid’s picture

Status: Active » Fixed
natrio’s picture

Where is this file located? I've looked into modules/fbconnect/js/ but only see fbconnect.js in there... Or is it only for v5 only? (I'm on drupal 6)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.