Hi,

I was wondering whether anyone might be able to suggest why the Titles of my content display and duplicate themselves when I go to share on G+ using the Google Plus One +1 button?

Any help would be terrific
Thanks
Martin

Comments

corbacho’s picture

could you post your web?

corbacho’s picture

rastarr’s picture

Thanks for the reply - any blog in http://www.geekandjock.com/blog has the Plus button for you to see this behaviour.

I'd certainly appreciate any help you can suggest.
Thanks
Martin

corbacho’s picture

What you see when you click the share button, is what google calls Snippet+. You can't control that from this module. It's google who grabs the info from your page.

I looked the source code of one of your nodes and I saw duplicated this:

<meta content="Warning: Ashley Madison Destroys Society's Morals" property="og:title">
<meta content="Ashley Madison Destroys Society's Morals" property="og:title">

and other duplicated meta tags. I think that 'og' is related to Facebook, so you can research that.

rastarr’s picture

Oh wow - thanks so much corbacho for hightlighting that.
Had a quick peek at the 'social' modules and noticed that the Facebook Social module also had the Opengraph tags implemented which was duping with the Opengraph module.

All cleared up now - thanks heaps again, mate. Much appreciated!

corbacho’s picture

Status: Active » Fixed

Great ;)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

uno’s picture

Did you manage to get rid of double titles?

I also have the same issue, both Facebook Social and Open Graph metatags inserts og:title.

jamix’s picture

uno, in Drupal 7, you can add this to your theme's template.php to fix the duplicate tags:

/**
 * Implements hook_html_head_alter().
 */
function YOURTHEME_html_head_alter(&$head_elements) {
  // Unset open graph tags set by the Facebook Social
  // module that duplicate the ones added by Open Graph meta tags.
  unset($head_elements['fb_social_open_graph_title']);
  unset($head_elements['fb_social_open_graph_sitename']);
}