Google+ supports a few additional meta tags, that appear to borrow from schema.org:

<meta itemprop=”name” content=”A Google+ title for the page being shared. Keep keywords towards the front” />
<meta itemprop=”description” content=”Longer form description, you’ve 200 words here that can specifically reference your presence on Google+” />
<meta itemprop=”image” content=”http://www.yourdomain.com/supercharmingimage.png” />
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eric.chenchao’s picture

Google+ metatag integration module attached.

Known Issues
--------------------------------------------------------------------------------
- When using Zen or its derived theme, Zen will serialize RDF Namespaces into
an RDFa 1.1 prefix attribute, which means itemtype will be included in prefix="..."

To avoid that this module will not add a itemtype directly to $variable['rdf_namespaces'].
Instead, you have to add itemtype code manually in the template.php or your theme.
Here is the example code you need to adapt and add to your code.

eric.chenchao’s picture

Status: Active » Needs review
DamienMcKenna’s picture

Status: Needs review » Needs work

Nice, Eric! This needs a little tidying to match Drupal's coding standards (mostly comments), but is almost there. Also, the info file needs to be updated.

eric.chenchao’s picture

Status: Needs work » Needs review
FileSize
10.33 KB

Hey Damien,

Thanks for the quick response. I have cleaned up code a little bit with updated .info

Could you check it again, please? Thanks.

DamienMcKenna’s picture

FileSize
10.89 KB

I reviewed the code and made a few minor changes, mostly in the comments. Nicely done, Eric!

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed!

eric.chenchao’s picture

Yeah, thanks Damien; -)

Status: Fixed » Closed (fixed)

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

markbannister’s picture

This patch seems to be the source of this issues (at least in some cases): https://www.drupal.org/node/1923616

Warning: preg_match_all() expects parameter 2 to be string, array given in token_scan() (line 124 of /home/sites/drupal7/public_html/includes/token.inc).
Warning: html_entity_decode() expects parameter 1 to be string, array given in decode_entities() (line 463 of /home/sites/drupal7/public_html/includes/unicode.inc).