WordPress.org

Ready to get started?Download WordPress

Forums

WP Facebook Open Graph protocol
Genesis SEO meta description (4 posts)

  1. janolima
    Member
    Posted 1 year ago #

    Hello, the plugin was working like a charm.

    But I recently noticed that meta description is not pullying information from Genesis SEO as it was doing perfectly before.

    Would you please give it a check? Here is the link: http://goo.gl/nj8ve

    Thank you very much.

    http://wordpress.org/extend/plugins/wp-facebook-open-graph-protocol/

  2. Abhishek Ghosh
    Member
    Posted 1 year ago #

    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.

  3. Chuck Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

  4. Abhishek Ghosh
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.