Firstly, apologies for not recalling what exact error this resolves but as I resolved it but altering the .htaccess file I hope someone can find use for it.

I'll test on a dev site in a couple of days and specify what error it resolves, however if I recall correctly this resolves a url issue when registering new users.

Edit your .htaccess file as follows:

go to approx line 81 and uncomment and complete accordingly

  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # adapt and uncomment the following:
 RewriteCond %{HTTP_HOST} ^yoursites\.com$ [NC]
 RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]

This ensures that users visiting your site from http://yoursite are transferred to http://www.yoursite enabling the module to work more efficiently with FB, especially as most admins register the FB application using the www prefix.

Comments

yossilac’s picture

This resolves the following issue -
If you register http://www.mysite.com as your callback url on Facebook, accessing http://mysite.com will cause an error from Facebook, because the fbconnect url does not match your callback url (the missing "www"). This is what I have noticed on the 5.x version, and I assume it is the same.

Thanks for the solution, I will try it.

Neil Adair’s picture

chartsandcoffee’s picture

I wanted to take a minute to update this thread. I spent substantial time trying to figure out why the module would not work. I'm a newbie with Drupal.

You need to make sure your site is redirected in htaccess and either go with or without the www. You will also need to make this sync up with your settings.php file. Your settings in the fbconnect config and in the facebook app must also be 100% consistent. If you have www in some places and the domain in other places it will not work. It is a little thing, but it makes all the difference. Hopefully this comment saves someone else a little time figuring this out.

vectoroc’s picture

Status: Active » Closed (won't fix)

Admins should register their own FB applications without “www” prefix