I am assuming it is from the FB Connect module but I receive this error.
Error Line 180, Column 76: Attribute "onlogin" is not a valid attribute. Did you mean "scrolling" or "onload"?

…irst last">

Comments

gibus’s picture

Status: Active » Needs review

In function function fbconnect_render_button, replace the return value with fb:login-button by:

return "<a href='#' onclick='FB.Connect.requireSession(); facebook_onlogin_ready(); return false;'> <img id='fb_login_image' src='$src' alt='Connect' /> </a>";

with $src pointing to a fbconnect image...

gregarios’s picture

Status: Needs review » Needs work

I get various W3C markup errors as well. This module's output should have XHTML 1.0 strict compliance.

W3C Validator Reports:

Attribute "size" exists, but can not be used for this element.
<fb:login-button size="medium" length="short" onlogin="facebook_onlogin_ready(

Attribute "length" is not a valid attribute. Did you mean "maxlength" or "content"?
…:login-button size="medium" length="short" onlogin="facebook_onlogin_ready()

Attribute "onlogin" is not a valid attribute. Did you mean "scrolling" or "onload"?
…ize="medium" length="short" onlogin="facebook_onlogin_ready();" background="d

Attribute "background" exists, but can not be used for this element.
…cebook_onlogin_ready();" background="dark"></fb:login-button>

element "fb:login-button" undefined
…_onlogin_ready();" background="dark"></fb:login-button>

Aniara.io’s picture

Same errors as #2, anyone working on a fix?

gibus’s picture

just try what I've proposed in #1

gregarios’s picture

Version: 6.x-1.0-beta8 » 6.x-1.0-beta9

Still invalid.

vectoroc’s picture

Status: Needs work » Closed (won't fix)

Too much work to fix this little problem

gh0st’s picture

Issue tags: +facebook connect, +validation

That solved the problem for me.
If you steel have this problem do this few steps:

1. Go to your fbconnect folder and locate this file "fbconnect.module"

2. Open the file with your favorite text editor

3. Locate the fbconnect_render_button fonction

4. remplace the foction return by :

return "<a href='#' onclick='FB.Connect.requireSession(); facebook_onlogin_ready(); return false;'> <img id='fb_login_image' src='$src' alt='Connect' /> </a>";

5. Add variable $src in the same fonction like this :

$src = "http://www.mamak.com/images/fbconnect.png";

That's it ! Hope that help you

mattwfx’s picture

Button doesn't work for me. :/ Where it can be a problem?

vectoroc’s picture

http://drupal.org/node/365584#comment-3539890
guys, look in README.txt sometimes ;)

thriftyngreen’s picture

oh seriously the readme txt is not definitive at all.

liormark’s picture

Ok, after going over literally hundreds of these posts, I finally found a quick and easy way to get a valid page with a Like button (or any other facebook widget) on it.

Just a fewlines of code really, take a look at http://www.liormark.com/develop/development-articles/facebook-fbml-w3c-v...

thriftyngreen’s picture

my god thank you!