Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In order to work correctly in some browsers the Facebook XML namespace needs to be added to the page, e.g.:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
The readme.txt file currently suggests adding this straight to the page.tpl.php file. Unfortunately I've seen in some situations it can cause conflicts with other scripts loading on the page and cause the node edit/add pages to not work correctly.
Comments
Comment #1
DamienMcKennaFYI the current fbconnect files in CVS have incorrect line endings, they should all be UNIX format (LF) instead of Windows format (CR/LF).
Here's the code I added to achieve this; it adds a new setting to the admin/settings/fbconnect page and the page.tpl.php files have to be adjusted to output a variable instead of hardcoding the xmlns value.
Add this to the end of fbconnect.module:
Add this at line 59 of fbconnect.admin.inc:
Change the installation step 7 the README.TXT file to the following:
Comment #2
DamienMcKennaNote: if someone could fix the line endings I'll be only too happy to supply a patch, right now my patch tries to fix the line endings problem too so is completely borked.
Comment #3
vectoroc CreditAttribution: vectoroc commenteddoes the namespace cause conflicts? give sample script/module, pls
Comment #4
DamienMcKennaI believe this was a bug with IE6, possibly IE7 also. I no longer have access to the sites this issue first appeared on.