Duplicated Facebook OG on source code
-
I’ve just installed your excellent plug-in NextGEN Facebook OG, and I’ve noticed that there’s a duplicated FB OG data in my source code. Maybe it’s from bad uninstalled plug-in, maybe it’s from the theme that I’m currently using, maybe it’s from WordPress… I don’t know.
My question is… How do I know who is writing that little piece of code that I want to get rid of?
Thanks in advance,
— Gabriel
-
WP doesn’t add OG tags, so it’s probably from your theme. Do you have a URL? I’ll have a look at the source and see if anything stands out.
Thanks,
js.
Yes, sure, here’s my blog: http://www.laneuronaatenta.com.ar
Thanks!
The Facebook debugger says it’s all good, except for the missing “og:url” property. Did you disable that meta tag?
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.laneuronaatenta.com.ar%2F
Thanks,
js.
Yes, I disable that meta tag because it’s duplicated on my code.
The duplicated Open Graph is still duplicated though.
Could you please help me pinpoint which plugin it’s writting that code?
Thanks!
The Facebook debugger does not see ANY og:url meta tag on the page. Is the duplication only happening when you enable the meta tag?
js.
When I enable the og:url and use the FB debugger with a particular post like this one:
http://www.laneuronaatenta.com.ar/musica/material-para-la-neurona-destruyan-al-album/I receive the following error from the FB debugger:
Errors That Must Be FixedMore Than One OG URL Specified: Object at URL ‘http://www.laneuronaatenta.com.ar/musica/material-para-la-neurona-destruyan-al-album/’ of type ‘website’ is invalid because it specifies multiple ‘og:url’ values: http://www.laneuronaatenta.com.ar/musica/material-para-la-neurona-destruyan-al-album/, http://www.laneuronaatenta.com.ar/musica/material-para-la-neurona-destruyan-al-album/.
—–
Now that I notice, the duplicated code only appears on post pages, not on the home page.
Just click on the link above, and search for the line: “<!– Facebook Open Graph Tags –>”
Thanks!
There is indeed another set of (very basic) Open Graph tags being added. They may be added by your theme or another plugin.
NextGEN Facebook OG:
<!-- NextGEN Facebook OG Meta BEGIN --> <link rel="publisher" href="https://plus.google.com/101371778630642526427" /> <link rel="author" href="http://www.laneuronaatenta.com.ar/author/gmr1970/" /> <meta property="article:author" content="http://www.laneuronaatenta.com.ar/author/gmr1970/" /> <meta property="article:modified_time" content="2013-01-15T00:22:04+00:00" /> <meta property="article:published_time" content="2013-01-14T12:23:30+00:00" /> <meta property="article:section" content="Digital Media" /> <!-- article:tag:1 --><meta property="article:tag" content="creatividad" /> <!-- article:tag:2 --><meta property="article:tag" content="música" /> <meta property="fb:admins" content="GabrielRavarini" /> <meta property="og:description" content="Por Bob Lefsetz 1. Es un artículo que genera ganancias para las discográficas, es como recuperan el dinero invertido. 2. Es un gatillo para publicidad. 3. Es demasiado largo. En vinilo, te resistías a poner más de cuarenta minutos de música en un lado. Lo más clásico de los álbums..." /> <!-- og:image:1 --><meta property="og:image" content="http://www.laneuronaatenta.com.ar/wp-content/uploads/DestruyendoAlAlbum-150x150.jpg" /> <!-- og:image:1 --><meta property="og:image:height" content="150" /> <!-- og:image:1 --><meta property="og:image:width" content="150" /> <meta property="og:site_name" content="la neurona atenta" /> <meta property="og:title" content="Material para la neurona: destruyan al álbum" /> <meta property="og:type" content="article" /> <!-- NextGEN Facebook OG Meta END -->The other plugin or theme meta tags:
<!-- Facebook Open Graph Tags --> <meta property="og:title" content="Material para la neurona: destruyan al รกlbum" /> <meta property="og:type" content="website" /> <meta property="og:image" content="http://www.laneuronaatenta.com.ar/wp-content/uploads/DestruyendoAlAlbum-e1358122420170.jpg"/> <meta property="og:url" content="http://www.laneuronaatenta.com.ar/musica/material-para-la-neurona-destruyan-al-album/" /> <meta property="og:site_name" content="la neurona atenta" /> <!-- Facebook Open Graph Tags end-->You may want to start disabling plugins etc., to track down the culprit. Hopefully the plugin or theme responsible for these will have an option to disable that feature. ๐
Good luck,
js.
Hahaha, yes, that brings me back to my original question…
Is there another way to track down the culprit, besides disabling plugins and themes?
What if the culprit was a plugin that was badly uninstalled?
Thanks for your help!
If you have shell access, you can do the following from the wp-content folder:
~/wordpress/wp-content$ grep -R 'Facebook Open Graph Tags' .That should tell you which theme or plugin is adding those meta tags.
js.
Hey!
I’ve finally found the culprit following your instructions!
This is the plugin that was duplicating the Facebook Open Graph Tags
http://tracking.42dev.eu/projects/facebook-send-buttonBy deleting that plugin all solved another issue that I was having, that consisted on duplicated post title when I posted my link on Google+
Thanks a lot!
You’re welcome. ๐
js.
The topic ‘Duplicated Facebook OG on source code’ is closed to new replies.