Support » Plugin: Share Buttons by AddThis » null domain when sharing on Facebook

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author addthis_matt

    (@addthis_matt)

    If you haven’t done so already, I would suggest adding the Open Graph tags (og:image, og:description, og:title, and og:url) to each of your pages.

    Here’s some more information on Open Graph tags:
    http://support.addthis.com/customer/portal/articles/381222-optimize-facebook-sharing

    If you’ve already added Open Graph tags, I’d suggest looking at the Facebook Debugger to see if Facebook is reporting any errors:
    https://developers.facebook.com/tools/debug

    Thanks! We’re using Yoast SEO and have og: tags already. I tested with Facebook’s tool and resolved one issue (date format) but the “null” problem is still happening.

    I see this in View Source:

    <div class=”addthis_toolbox addthis_default_style addthis_32x32_style” addthis:url=’/2015/09/04/learning-with-similarity-search/’ addthis:title=’Learning with Similarity Search’ >

    The lack of a domain on that addthis:url seems related to the issue.

    Any ideas?

    Plugin Author addthis_matt

    (@addthis_matt)

    It looks like the addthis:url is being set to a relative URL, instead of an absolute URL as it normally is.

    We’d typically use the value of <?php the_permalink(); ?> to insert the permalink associated with that page or excerpt, so perhaps your site is using relative URLs as the permalinks?

    Crazy. Someone had a plugin called Root Relative URLs that was fighting with us.

    Thanks for the assist!

    Plugin Author addthis_matt

    (@addthis_matt)

    Ah, that’ll do it! Thanks for the follow up to let us know 🙂

    Seems like if the_permalink starts with something other than “http” Facebook shares (and others) will fail.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘null domain when sharing on Facebook’ is closed to new replies.