WordPress.org

Ready to get started?Download WordPress

Forums

WP Facebook Like
xfbml javascript embedding mode produces invalid HTML (3 posts)

  1. monodistortion
    Member
    Posted 3 years ago #

    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.

  2. monodistortion
    Member
    Posted 3 years ago #

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

  3. cucupan
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic