Title: [Plugin: Facebook] Fatal Error
Last modified: August 20, 2016

---

# [Plugin: Facebook] Fatal Error

 *  Resolved [marshallwayne](https://wordpress.org/support/users/marshallwayne/)
 * (@marshallwayne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/)
 * The Facebook plugin installed just fine.
 * The comments, and “Like” box work.
 * However, when I try to publish, and have it posted to my Facebook page, and fan
   page, it gives me this:
 * Fatal error: Call to undefined function get_post_thumbnail_id() in /home/stopmar/
   public_html/wp-content/plugins/facebook/fb-social-publisher.php on line 193
 * I hope someone can help.
 * Thank you.
 * [http://wordpress.org/extend/plugins/facebook/](http://wordpress.org/extend/plugins/facebook/)

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

 *  Plugin Contributor [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809351)
 * The get_post_thumbnail_id() function has been in WordPress since version 2.9.
 * The plugin requires WordPress version 3.1.1 or higher. Upgrade.
 * If you have upgraded, then make sure that you have all the correct core WordPress
   files and aren’t running some kind of bad upgrade in some way.
 *  Thread Starter [marshallwayne](https://wordpress.org/support/users/marshallwayne/)
 * (@marshallwayne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809362)
 * Hmmmm….
 * I have the latest upgrade.
 * I completely deleted my blog last night, and reinstalled within my Host Gator
   cPanel, so I could start fresh.
 * So I don’t have any conflicting plugins at the moment either, and the only posts
   are posts to test this plugin.
 * I’m not sure what to do.
 *  Thread Starter [marshallwayne](https://wordpress.org/support/users/marshallwayne/)
 * (@marshallwayne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809372)
 * I think it may be that when I try to submit my publish actions for review in 
   the Facebook Developers dashboard, I get this:
 * You must publish at least one action to your Timeline using this action type.
   Review the documentation.
 * I’m not sure how to publish an action, unless it means I can just manually enter
   my link to my page, or fan page.
 *  [speechpoet](https://wordpress.org/support/users/speechpoet/)
 * (@speechpoet)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809471)
 * Adding this to functions.php – add_theme_support( ‘post-thumbnails’ ); – stopped
   the undefined function error. But I can’t get “Publish to author’s Timeline” 
   to stay checked, and the posts don’t show up in the timeline.
 *  Thread Starter [marshallwayne](https://wordpress.org/support/users/marshallwayne/)
 * (@marshallwayne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809475)
 * Thank you for that tip. I added that section to functions.php, but just like 
   you, I’m not seeing the posts show up in the timeline.
 *  Thread Starter [marshallwayne](https://wordpress.org/support/users/marshallwayne/)
 * (@marshallwayne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809476)
 * It’s posts to a friends wall now if I tag the friend, so that’s a step.
 *  [seravi](https://wordpress.org/support/users/seravi/)
 * (@seravi)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809511)
 * Hm…I’m getting the same undefined function error, and also recently upgraded.
   How does one go about doing this particular advice:
 * “make sure that you have all the correct core WordPress files and aren’t running
   some kind of bad upgrade in some way. ”
 *  [Jason A](https://wordpress.org/support/users/jasonlanderson/)
 * (@jasonlanderson)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809521)
 * I noticed this was put as resolved, but I see the post from 2 hours ago seems
   to be have an issue. I just enabled this plugin as well now and get this error
   when I attempt to publish a post.
 * No post shows on the timeline and I get this screen right after publishing.
 * Fatal error: Call to undefined function get_post_thumbnail_id() in /home/gstyle/
   public_html/wp-content/plugins/facebook/fb-social-publisher.php on line 193
 * Can someone let me know what the resolution of this is. I have the latest WordPress
   version, and all the core files are fine.
 * Thanks
 *  Thread Starter [marshallwayne](https://wordpress.org/support/users/marshallwayne/)
 * (@marshallwayne)
 * [14 years ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809535)
 * I simply did what speechpoet laid down, and that worked perfectly:
 * Adding this to functions.php – add_theme_support( ‘post-thumbnails’ ); – stopped
   the undefined function error.
 * …so, go to your Appearance tab, then to Editor.
 * You’ll then click on, “Theme Functions” which will be functions.php
 * Under, “// Theme specific functionality”, I added this:
 * add_theme_support( ‘post-thumbnails’ );
 *  [jmunchbach](https://wordpress.org/support/users/jmunchbach/)
 * (@jmunchbach)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809736)
 * I’m trying to correct the same problem (I think…)
 * Fatal error: Wrong parameters for Exception([string $exception [, long $code ]])
   in /home/content/37/9099637/html/wp-content/plugins/facebook/includes/facebook-
   php-sdk/base_facebook.php on line 54

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

The topic ‘[Plugin: Facebook] Fatal Error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook_526fac.svg)
 * [Facebook](https://wordpress.org/plugins/facebook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 10 replies
 * 6 participants
 * Last reply from: [jmunchbach](https://wordpress.org/support/users/jmunchbach/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-fatal-error-1/#post-2809736)
 * Status: resolved