Viewing 4 replies - 1 through 4 (of 4 total)
  • This is what I did:

    a. Install Yoast’s WordPress SEO plugin. https://yoast.com/wordpress/seo/
    b. Set up Facebook OpenGraph stuff under wp-admin -> SEO -> Social (wp-admin/admin.php?page=wpseo_social). Make sure to link either app or a valid admin user account.
    c. Add the following to your theme’s functions.php file:


    /**
    * OpenGraph stuff is now handled by Yoast.
    * This removes Facebook's broken use of its own technology.
    */
    add_action('wp_head', 'remove_fb_og_stuff', 0);
    function remove_fb_og_stuff() {
    remove_action( 'wp_head', 'Facebook_Open_Graph_Protocol::add_og_protocol' );
    }

    Et voilà. It’s absolutely ridiculous Facebook’s 1st-party plugin doesn’t follows Facebook’s own API documentation when implementing OpenGraph metatags. Note that this has taken me *ages* to figure out at this point.

    Hi aendrew,

    Just wanted to confirm is your code still working?

    As i tried removing facebook plugin open graph tags, but its not wroking for me.
    I stil have duplicate og tags on funnychutkule

    It seems you have the right kind of OG tags now — the meta ones instead of the ogp.me ones.

    If it’s still not working for you, it must be something else — sorry I can’t be more help!

    I have right tags now bcoz as of now i commented the following line in facebook plugin’s facebook.php file

    // add_action( ‘wp_head’, array( ‘Facebook_Open_Graph_Protocol’, ‘add_og_protocol’ ) );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Facebook / Facebook comments for wp] Not showing mod tools’ is closed to new replies.