在 node page 加入 open graph tags

<?php
   
//custom.module: function custom_preprocess_node(&$vars) {
   
drupal_add_html_head(array(
     
'#tag' => 'meta',
     
'#attributes' => array(
       
'property' => 'og:description',
       
'content' => trim(strip_tags($vars['node']->body['und'][0]['safe_value'])),
      ),
    ),
'og_description');
?>
Google