throw new FacebookException(error);
}
}
public static FacebookError getError(String response, int statusCode) {
HttpError httpError = gson.fromJson(response, HttpError.class);
return new FacebookError(statusCode, "Exception Type: "+httpError.getError().getType()+ " " + httpError.getError().getMessage(), null);
}