System.setProperty("facebook4j.http.prettyDebug", p.getProperty("http.prettyDebug") == null ? "true" : p.getProperty("http.prettyDebug"));
System.setProperty("facebook4j.jsonStoreEnabled", p.getProperty("jsonStoreEnabled") == null ? "true" : p.getProperty("jsonStoreEnabled"));
}
protected Facebook createFacebook() {
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setOAuthAppId(p.getProperty("oauth.appId")).setOAuthAppSecret(p.getProperty("oauth.appSecret"));
cb.setOAuthAccessToken(p.getProperty("oauth.accessToken"));
Authorization auth = new OAuthAuthorization(cb.build());
return new FacebookFactory().getInstance(auth);
}