• Resolved ghostofliberty

    (@ghostofliberty)


    Greetings

    I am trying to share posts on Facebook by simply pasting the URL. When I do, there is no thumbnail or post description. I tried a plugin, didn’t work. I then used FB’s debugging tool and am seeing this message:

    More Than One OG URL Specified: Object at URL ‘http://ignorethelies.com/’ of type ‘article’ is invalid because it specifies multiple ‘og:url’ values: http://ignorethelies.com/, http://ignorethelies.com/.

    I then disabled ALL plugins. It did not fix the error. I then found out that Jetpack is causing problems with OG tags, so I added this string of text: add_filter( ‘jetpack_enable_opengraph’, ‘__return_false’, 99 ); It didn’t fix the problem but I left it there in case it is a good first step.

    My site is live so I have reactivated all my plugins, but can deactivate them once more should anyone need me to. I believe that the theme itself has a possible problem built in and I am hoping someone can help me find the issue as I am not familiar with this particular type of code.

    Thanks so much. Here is the URL. Ignore the Lies

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sebastian

    (@sebastian-klier)

    Try to change that filter to this instead: add_filter(‘jetpack_enable_open_graph’, ‘__return_false’, 99);

    See if that works. If not, the other plugin which is adding the OG tags on your site seems to be Squirrly WordPress SEO Plugin.

    Thread Starter ghostofliberty

    (@ghostofliberty)

    Hey, Sebastian. Thanks for the help.

    Changing the filter didn’t help. I disabled the SEO plugin and still nothing.

    Got any other angles? Could there be multiple Open Graph tags in the theme’s actual code? I don’t know where to look for them nor do I know what they look like to be honest.

    Sebastian

    (@sebastian-klier)

    Hm, looking now, the tags added by Squirrly are gone, but the Jetpack tags are there. 😉 So you could just change the filter again to what you had before, see if it helps.

    Ideally you’d want to get rid of these tags though (and keep the ones from either Jetpack or Squirrly):

    <!--/ Open Graph /-->
    <meta property="og:image" content="" />
    <meta property="og:title" content="Ignore The Lies" />
    <meta property="og:url" content="http://ignorethelies.com" />

    You could try to find them in the theme’s header.php (Design -> Editor -> silverOrchid -> header.php – make a backup of that file before editing on a live site). But it might just as well also be another plugin causing them. :/

    Thread Starter ghostofliberty

    (@ghostofliberty)

    Hey, thanks so much Sebastian and sorry if I confused you. I disabled the SEO plugin to see if it would help. It didn’t. What DID help was turning off the “Publicize” connection I had made through Jetpack to Facebook! Now everything is working fine.

    Thank you again for helping out, and I will drop the extra tags immediately.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘More Than One OG URL Specified- cannot share to facebook’ is closed to new replies.