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:
- 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.
- Now search for the word "og:url" in the HTML source.
- 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.
- 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.
- 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:
- Official Facebook plugin
- WordPress SEO by Yoast
- Add Link to Facebook
- Facebook AWD All in one
- Header and Footer
- NextGEN Facebook OG
- SEO Facebook Comments
- SEO Ultimate
- Social Discussions
- NextScripts SNAP
- Simple Facebook Connect
- Social Sharing Toolkit
- WP Facebook Open Graph protocol
- Open Graph
- WP Facebook Like Send & Open Graph Meta
- Network Publisher
- 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.