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

  1. janolima
    Posted 3 years 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.


  2. Abhishek Ghosh
    Posted 3 years 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 :


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


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

  3. Chuck Reynolds
    Plugin Author

    Posted 3 years ago #

  4. Abhishek Ghosh
    Posted 3 years 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 :


    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 -


    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 :


    Edit : Forked on Github and committed the edited one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Facebook Open Graph protocol
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.