Permalink
Browse files

Enable debug output on Facebook API failure

  • Loading branch information...
1 parent 890f96c commit d3c085707f25a8bf4e9490dec8f970c696ebc683 @garbear committed Aug 14, 2012
Showing with 11 additions and 11 deletions.
  1. +11 −11 Facebook/FacebookTimeline.php
@@ -62,7 +62,7 @@ public static function AchievementsNotification($user, $badge) {
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -88,7 +88,7 @@ public static function ArticleAfterVote($user_id, &$page, $vote) {
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -120,7 +120,7 @@ public static function ArticleProtectComplete(&$article, &$user, $protect, $reas
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -154,7 +154,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -168,7 +168,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -198,7 +198,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
} else if ( self::getAction('edit') ) {
@@ -210,7 +210,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -227,7 +227,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -275,7 +275,7 @@ public static function UploadComplete(&$image) {
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -301,7 +301,7 @@ public static function WatchArticleComplete(&$user, &$article) {
$object->getType() => $object->getUrl(),
));
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}
@@ -322,7 +322,7 @@ public static function UnwatchArticleComplete(&$user, &$article) {
try {
self::removeAction( 'watch', $object );
} catch ( FacebookApiException $e ) {
- // echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
+ echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
}
}
}

0 comments on commit d3c0857

Please sign in to comment.