private boolean parseBoolean(HttpResponse res) throws FacebookException {
        String s = res.asString().trim();
        if (!s.startsWith("{")) {
            return Boolean.valueOf(s);
        }
        try {
            return res.asJSONObject().getBoolean("success");
        } catch (JSONException jsone) {
            throw new FacebookException(jsone);
        }