Implemented new exception CallbackVerificationFailedException
[facebook-errors] / src / main / java / de / juplo / facebook / exceptions / GraphApiException.java
index ee62a93..705caa4 100644 (file)
@@ -66,6 +66,7 @@ public class GraphApiException extends OAuth2Exception
       case 21:    return new PageMigratedException(error);
       // 100..199: graph method errors
       case 100:   return new UnsupportedGetRequestException(error);
+      case 104:   return new AccessTokenRequiredException(error);
       // 200..299: permission errors
       // 300..399: data editing errors
       // 400..449: authentication error
@@ -79,6 +80,7 @@ public class GraphApiException extends OAuth2Exception
       // 950..999: batch api errors
       // 1000..1099: event api errors
       // 1100..1199: live-message errors
+      case 2200:  return new CallbackVerificationFailedException(error);
 
       default:
         LOG.info("unmapped error: {}", error);