Linking to Facebook

Support Area Forums Foundation Linking to Facebook

Viewing 2 posts - 1 through 2 (of 2 total)
URL to the page in question: http://
  • Author
    Posts
  • #35929
    Jack Elder
    Participant

    I use Jetpack for my post facebook links. I’m having problems getting the image transferred. When I do a scrape in debugger I get this message. I’m wondering if the theme is also getting an object url.

    Object at URL ‘http://www.jubileehealthplace.org/believing-the-word-even-for-dieting/’ of type ‘article’ is invalid because it specifies multiple ‘og:url’ values: http://www.jubileehealthplace.org/believing-the-word-even-for-dieting/, http://www.jubileehealthplace.org/believing-the-word-even-for-dieting/.

    Sometimes it will work.
    I saw this fix on internet and except for theme name wondered if it was the problem.

    The problem is definitely in the theme! Weaver II has built in Open Graph function.
    Code is in functions.php lines 2199 to 2218….
    /* code for Facebook etc…
    Don’t try a remove_action fix – it breaks the theme unless you’re very careful!
    This method belopw seems to work, and is safe to try – no theme hacking!
    I’ve found deleting the default image URL in the theme “advanced options” “Preferred Image for Facebook” disabled the built-in Open Graph function on a test xampp site

    Don’t know if it applies as I don’t know what that means.

    Any help would be appreciated.
    Jack

    #35930
    Bill Robbins
    Moderator

    Hi Jack,

    Those can be tricky issues when the come up. It’s been years since I built any themes that had OG tags baked in. I’m of the opinion that those should be supplied by a plugin. Many plugins, especially SEO plugins supply OG tags. I use Yoast SEO for my titles, descriptions and it adds social tags for me. You might see if Jetpack is duplicating some functionality that is already part of your SEO plugin. That might be what’s causing some or all of the trouble.

    Take care,
    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Linking to Facebook’ is closed to new replies.