diff --git a/social_stats.module b/social_stats.module
index 8ac8011..9041115 100644
--- a/social_stats.module
+++ b/social_stats.module
@@ -133,11 +133,16 @@ function _social_stats_facebook_multiple(&$nodes) {
           );
         }
         else {
-          $no_likes = intval($facebook_data['og_object']['engagement']['count']);
-          $no_comments = intval($facebook_data['share']['comment_count']);
-          $no_share = intval($facebook_data['share']['share_count']) - $no_likes;
+          $no_likes = $no_comments = $no_share = 0;
+          if (isset($facebook_data['og_object'])) {
+            $no_likes = intval($facebook_data['og_object']['engagement']['count']);
+          }
+          if (isset($facebook_data['share'])) {
+            $no_comments = intval($facebook_data['share']['comment_count']);
+            $no_share = intval($facebook_data['share']['share_count']) - $no_likes;
+          }
           $total_count = $no_likes + $no_comments + $no_share;
-          // Only update table if counter > 0
+          // Only update table if counter > 0.
           if ($total_count) {
             // @TODO Update every row in one query.
             db_merge('social_stats_facebook')
