• Version 1.4.0

    In the xfbml javascript embedding mode the function get_footer() is added to loop_start. This puts <div id='fb-root'></div> in the <head> section. Also JavaScript needs to be in the tag <script type='text/javascript'> to be valid.

    I ended up changing line 82 from:

    add_action('loop_start', array(&$this, 'get_footer'));
    

    to

    add_filter( 'wp_footer', array( &$this, 'get_footer' ) );
    

    The <fb:like> is also invalid but this isn’t as big a problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter monodistortion

    (@monodistortion)

    Using iframe mode the attribute allowTransparency is invalid but it’s used for IE.

    cucupan

    (@cucupan)

    thank you so much!! ^_^

    i was messing with this thing for almost an hour to get it right.

    and i only noticed it did that when i was trying to add og:image to my header and it wasn’t working using URL Linter.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Facebook Like] xfbml javascript embedding mode produces invalid HTML’ is closed to new replies.