Support » Plugin: WP Facebook Open Graph protocol » Genesis SEO meta description

Viewing 3 replies - 1 through 3 (of 3 total)
  • Agreed, its not working for me too (Genesis 2.0 Beta HTML5 + FWP FB OGP plugin), its basically pulling the content so far possibly no one will need or adding filter making the description chopped out before the sentence ends. Good example can be the blog of father of Genesis :

    http://www.copyblogger.com/science-of-relationships/

    Possibly he added filter. If nothing added, this will happen :

    http://thecustomizewindows.com/2012/09/virtual-network-computing-or-vnc/

    None is acceptable 🙁
    The plugin WP Facebook Open Graph protocol is great BTW. Thank you very much for the development.

    Plugin Author Chuck Reynolds

    (@ryno267)

    Excellent work Chuck.
    Beta fixed the major thing. But added a sad bug, extra things are getting appended in og:url. Which I have fixed in this way (may be it can be helpful for the others)

    Example :

    For :

    http://example.org/2013/05/example-post/

    The output is becoming :

    <meta property="og:url" content="http://example.org/2013/05/example-post/?year=2013&monthnum=05&name=example-post" />

    Obviously it should be –

    <meta property="og:url" content="http://example.org/2013/05/example-post/" />

    Removing the safe url things and tags –

    http://example.org/2013/05/example-post/?year=2013&monthnum=05&name=example-post

    This is the function which is fetching the URL, right ?

    // do url stuff
    	if ( is_home() || is_front_page() ) {
    		$url = get_bloginfo( 'url' );
    } else {
    		$url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
    		//$url = 'http' . ( is_ssl() ? 's' : '' ) . "://".$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    		}
    		echo '<meta property="og:url" content="' . esc_url( apply_filters( 'wpfbogp_url', $url ) ) . '" />' . "\n";

    Home was fine, but / was getting stripped off. Same issue with Category like posts. So I uncommented the home_url( $wp->request and commented out the active line :

    // $url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
    		$url = 'http' . ( is_ssl() ? 's' : '' ) . "://".$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

    Its fully fine now.

    Clean output :

    https://developers.facebook.com/tools/debug/og/echo?q=http%3A%2F%2Fthecustomizewindows.com%2F2013%2F01%2Finternet-protocol-suite-brief-details%2F

    Edit : Forked on Github and committed the edited one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Genesis SEO meta description’ is closed to new replies.