return Boolean.valueOf(res.asString().trim());
}
public boolean makeFriendTestUser(TestUser testUser1, TestUser testUser2) throws FacebookException {
ensureAuthorizationEnabled();
HttpResponse res = post(buildEndpoint(testUser1.getId(), "friends/" + testUser2.getId()),
new HttpParameter[]{new HttpParameter("access_token", testUser1.getAccessToken())});
if (!Boolean.valueOf(res.asString().trim())) {
return false;
}
res = post(buildEndpoint(testUser2.getId(), "friends/" + testUser1.getId()),
new HttpParameter[]{new HttpParameter("access_token", testUser2.getAccessToken())});
return Boolean.valueOf(res.asString().trim());
}