facebook-opengraphgoogle-plus-one

can I force Google+ button to use open graph URL?


Is it possible to make Google Plus use open graph URL? I already use OG for Facebook, so have this in code:

<meta property="og:url" content="http://www.sandrophoto.com/category/famous-photographers/"/>
<meta property="og:type" content="website" />

But Google doesn't want to respect it! Any thoughts?


Solution

  • Google Plus 1 doesn't currently support og tags. The URL that is +1'd is determined by one of three things, in this order:

    1. The button's href attribute This attribute explicitly defines the +1 target URL.
    2. The page's <link rel="canonical" ... /> tag If the +1 button's href attribute is not provided, Google will use the page's canonical URL. For more information on defining the canonical URL for a page, see http://www.google.com/support/webmasters/bin/answer.py?answer=139066.
    3. The URL provided by document.location.href (not recommended) If neither of these pieces of data are present, Google will use the URL of the page as found in the DOM. Because this URL might contain session IDs, anchors, or other parameters that are not actually part of the canonical URL, we highly recommend either setting the href attribute for the +1 button or adding a <link rel="canonical" ...> tag to your page.