Skip to content

Commit

Permalink
Enable debug output on Facebook API failure
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Aug 14, 2012
1 parent 890f96c commit d3c0857
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions Facebook/FacebookTimeline.php
Expand Up @@ -62,7 +62,7 @@ public static function AchievementsNotification($user, $badge) {
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand All @@ -88,7 +88,7 @@ public static function ArticleAfterVote($user_id, &$page, $vote) {
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand Down Expand Up @@ -120,7 +120,7 @@ public static function ArticleProtectComplete(&$article, &$user, $protect, $reas
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand Down Expand Up @@ -154,7 +154,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand All @@ -168,7 +168,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand Down Expand Up @@ -198,7 +198,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} else if ( self::getAction('edit') ) { } else if ( self::getAction('edit') ) {
Expand All @@ -210,7 +210,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand All @@ -227,7 +227,7 @@ public static function ArticleSaveComplete(&$article, &$user, $text, $summary, $
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand Down Expand Up @@ -275,7 +275,7 @@ public static function UploadComplete(&$image) {
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand All @@ -301,7 +301,7 @@ public static function WatchArticleComplete(&$user, &$article) {
$object->getType() => $object->getUrl(), $object->getType() => $object->getUrl(),
)); ));
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand All @@ -322,7 +322,7 @@ public static function UnwatchArticleComplete(&$user, &$article) {
try { try {
self::removeAction( 'watch', $object ); self::removeAction( 'watch', $object );
} catch ( FacebookApiException $e ) { } catch ( FacebookApiException $e ) {
// echo $e->getType() . ": " . $e->getMessage() . "<br/>\n"; echo $e->getType() . ": " . $e->getMessage() . "<br/>\n";
} }
} }
} }
Expand Down

0 comments on commit d3c0857

Please sign in to comment.