Duplicate OpenGraph Metatags

If you have configured Automatic Publishing via LinksAlpha and one or more posts fail to publish to your Facebook Profile/Page/Group, you might across a message similar to below in your Publish Results:

"Please make sure that the URL added to the post loads without errors here - https://developers.facebook.com/tools/debug".

This error usually happens cause pages in your website have duplicate Open Graph Metatags. You can confirm if this is the reason by loading post URL in the Facebook Debugger located at - https://developers.facebook.com/tools/debug. If there is an issue, you will get an output similar to below with an error message:

"Object at URL 'https://example.com/' of type 'article' is invalid because it specifies multiple 'og:url' values: https://example.com"


You can fix the issue by ensuring that only a single set of Open Graph Metatags are added to your page. To fix the issue, follow the steps below:
  1. Load at the HTML source of your WordPress Post/Page. Following image shows how you can view the source in Chrome browser on Mac OSx.

  2. Now search for the word "og:url" in the HTML source.

  3. Typically for each occurrence of "og:url" in the HTML source of the webpage, there should a text snippet before it that typically tells which plugin has added the entry to the page. As the image below shows, the Open Graph metatags have been added by Network Publisher plugin for WordPress, that LinksAlpha provides. 

  4. Once you know the plugin name, go to your WordPress Admin Console > Settings > Plugins and disable the plugin. Please make sure that while you are disabling the plugin, it does not impact functioning of your website. 

  5. Note that the plugin that you select for disabling might provide an option to disable adding of Open Graph Metatags. If it does, it will be better to use that option instead. Following plugins provide option to disable Open Graph Metatags:

    1. Official Facebook plugin
    2. WordPress SEO by Yoast
    3. Add Link to Facebook
    4. Facebook AWD All in one
    5. Header and Footer
    6. NextGEN Facebook OG
    7. SEO Facebook Comments
    8. SEO Ultimate
    9. Shareaholic
    10. Social Discussions
    11. NextScripts SNAP
    12. Wordbooker
    13. Socialize
    14. Simple Facebook Connect
    15. Social Sharing Toolkit
    16. WP Facebook Open Graph protocol
    17. Open Graph
    18. SharePress
    19. WP Facebook Like Send & Open Graph Meta
    20. Network Publisher
    21. WP-OGP

  6. If by looking at the HTML source of the page, you are not able to find out which WordPress plugin is causing the duplicate Open Graph Metatags, you will have disable all WordPress plugins and then enable each plugin one by one to find out the erring plugin. Once you are able to find the erring plugin, you will have to decide whether to disable the plugin or if the plugin provides an option to disable addition of Open Graph Metatags.