• Resolved gmr1970

    (@gmr1970)


    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

    https://www.ads-software.com/extend/plugins/nextgen-facebook/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter gmr1970

    (@gmr1970)

    Yes, sure, here’s my blog: https://www.laneuronaatenta.com.ar

    Thanks!

    Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter gmr1970

    (@gmr1970)

    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!

    Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter gmr1970

    (@gmr1970)

    When I enable the og:url and use the FB debugger with a particular post like this one:
    https://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 Fixed

    More Than One OG URL Specified: Object at URL ‘https://www.laneuronaatenta.com.ar/musica/material-para-la-neurona-destruyan-al-album/’ of type ‘website’ is invalid because it specifies multiple ‘og:url’ values: https://www.laneuronaatenta.com.ar/musica/material-para-la-neurona-destruyan-al-album/, https://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!

    Plugin Author JS Morisset

    (@jsmoriss)

    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="https://www.laneuronaatenta.com.ar/author/gmr1970/" />
    <meta property="article:author" content="https://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&uacute;sica" />
    <meta property="fb:admins" content="GabrielRavarini" />
    <meta property="og:description" content="Por Bob Lefsetz 1. Es un art&iacute;culo que genera ganancias para las discogr&aacute;ficas, es como recuperan el dinero invertido. 2. Es un gatillo para publicidad. 3. Es demasiado largo. En vinilo, &nbsp;te resist&iacute;as a poner m&aacute;s de cuarenta minutos de m&uacute;sica en un lado. Lo m&aacute;s cl&aacute;sico de los &aacute;lbums..." />
    <!-- og:image:1 --><meta property="og:image" content="https://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 &aacute;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="https://www.laneuronaatenta.com.ar/wp-content/uploads/DestruyendoAlAlbum-e1358122420170.jpg"/>
    <meta property="og:url" content="https://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.

    Thread Starter gmr1970

    (@gmr1970)

    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!

    Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Thread Starter gmr1970

    (@gmr1970)

    Hey!

    I’ve finally found the culprit following your instructions!

    This is the plugin that was duplicating the Facebook Open Graph Tags
    https://tracking.42dev.eu/projects/facebook-send-button

    By 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!

    Plugin Author JS Morisset

    (@jsmoriss)

    You’re welcome. ??

    js.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Duplicated Facebook OG on source code’ is closed to new replies.