WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] Disabling the open graph tags from this plugin (4 posts)

  1. Ankur Gupta
    Member
    Posted 1 year ago #

    How to remove/disable the Open Graph Tags from this plugin.
    As i am already using the OG tags generated by Yoast SEO plugin, OG tags are appearing twice on my website

    Facebook lint is giving error for the same: More Than One OG URL Specified

    http://wordpress.org/extend/plugins/facebook/

  2. Ankur Gupta
    Member
    Posted 1 year ago #

    As of now i commented following line in facebook/facebook.php

    add_action( 'wp_head', array( 'Facebook_Open_Graph_Protocol', 'add_og_protocol' ) );

  3. Niall Kennedy
    Member
    Plugin Author

    Posted 1 year ago #

    You can empty the fb_meta_tags filter. Attach to the filter and return an empty array.
    http://plugins.trac.wordpress.org/browser/facebook/tags/1.1.8/open-graph-protocol.php#L318

  4. Ankur Gupta
    Member
    Posted 1 year ago #

    Hi Niall,

    Can you please provide the code, so that i can put it in functions.php and i dont have to worry about Facebook plugin updates anymore

    TIA

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic