• Does anyone know of a way (automated) to have WordPress automatically add the Facebook share meta code (image src) to each post?

    Ideally, it would be some sort of plugin that automatically resizes an image added to the post to Facebook’s max share thumbnail size & throws the meta code into the header, but a more manual way would be a fine (a plugin integrated into the admin that lets you upload/specify an external image).

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter milkmit

    (@milkmit)

    Ok, I’ve found a couple things to get me on the right track, but the very first step seems to be breaking our blog.

    I’m trying to add this line to the functions.php file (as per http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/):
    add_theme_support( 'post-thumbnails' );

    …but our main blog page and admin pages crap out (all white page; nothing in source).

    If I wrap it in an ‘if (function_exists(‘add_theme_support’))’ statement it doesn’t crap out, but it still doesn’t seem to reflect any changes, so I assume that function doesn’t exist.

    We’re using a custom-modified Thematic theme, if that helps.

    Any thoughts?

    Thread Starter milkmit

    (@milkmit)

    Nevermind, I’m clearly an idiot. Turns out I was putting this code in the wrong functions.php; I was putting it in the main one, and not the one for the theme we’re using. :/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Facebook share image code’ is closed to new replies.