Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Doug's Function

By: a guest on Jan 29th, 2013  |  syntax: None  |  size: 0.44 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. unction wpc_fb_opengraph() {
  2. $wpc_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
  3. ?>
  4. <meta property="og:site_name" content="<?php bloginfo('name'); ?>" />
  5. <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt($post->ID)); ?>" />
  6. <meta property="fb:admins" content="1566644629"/>
  7. <meta property="fb:app_id" content="135847609824276">
  8. <?php }
  9.  
  10. add_action('wp_head', 'wpc_fb_opengraph');