WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Facebook: Advanced Sharing Optimization for All Social Websites
[resolved] Duplicated Facebook OG on source code (12 posts)

  1. gmr1970
    Member
    Posted 1 year ago #

    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

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

  2. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. gmr1970
    Member
    Posted 1 year ago #

    Yes, sure, here's my blog: http://www.laneuronaatenta.com.ar

    Thanks!

  4. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. gmr1970
    Member
    Posted 1 year ago #

    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!

  6. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. gmr1970
    Member
    Posted 1 year ago #

    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 Fixed

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

  8. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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&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="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 &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="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.

  9. gmr1970
    Member
    Posted 1 year ago #

    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!

  10. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  11. gmr1970
    Member
    Posted 1 year ago #

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

  12. JS Morisset
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome. ;-)

    js.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic