Needs review
Project:
Facebook Connect
Version:
6.x-1.0-beta9
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2009 at 16:20 UTC
Updated:
24 Oct 2011 at 18:35 UTC
The problem is in line 549 on my system - it fails validation with attribute errors:
<div class="item-list"><ul><li class="first last"><fb:login-button onlogin="facebook_onlogin_ready();" size="medium" background="white" length="long">
No biggie, but you may as well fix it for future releases. Looking forward to using this as soon as the Google Maps conflict gets ironed out!
Comments
Comment #1
pvhee commentedThe validation error is still here. W3C's validation service returns with
Is there any way to get rid of the errors? (you cannot get rid of the fb:login-button obviously) Do you maybe need to use a new doctype so that facebook tags validate?
Comment #2
pvhee commentedComment #3
buddaAccording to http://wiki.developers.facebook.com/index.php/Fb:login-button the button can be implemented using standard html and javascript to avoid the W3C validation. Weirdly, i thought the additional namespace in the page.tpl.php sorted out the FBML tags and attributes?
Comment #4
tsi commentedSubscribing
Comment #5
gregarios commentedI tried replacing the appropriate code in this module with the html method found here:
http://wiki.developers.facebook.com/index.php/Fb:login-button
...and it worked AND validates W3C.
There would have to be some small changes to the variables that feed the button, but this is doable.
You don't even need to use the CSS file they recommend in the instructions. It just works.
UPDATE: It worked in Safari, but not Firefox. Haven't tested in IE.
Comment #6
gregarios commentedComment #7
vectoroc commentedComment #8
vectoroc commentedupdate here
if you want to use only connect function (login button), you can place next code in your theme/module. It will replace fbml login button with standard-compliant html button
Comment #9
pingwin4egUnexpected token )
Comment #10
pingwin4egOne more thing: "perms='email'" doesn't render here. So we can't get user's FB email when autoregistering him/her. Is there some solution for it?
Comment #11
guruslot commentedHi,
Is it possible to have a couple of words on where to put the code written above?
Thanks!