Reputation: 807
I am using Facebook4j and when I try to connect the first time with my facebook account I have now :
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: message - (#100)
Tried accessing nonexisting field (user_photos) on node type (User)\ncode - 100\
I don't know why but I don't use user_photos it's strange..
I do this
FacebookUtility facebookUtility = new FacebookUtility();
User userFb = facebookUtility.getFacebookUser(String.valueOf(idFb));
and my function getFacebookUser is :
public facebook4j.User getFacebookUser(String userId) throws FacebookException{
// Instanciate Facebook4j Facebook object to request Facebook Graph API
Facebook facebook = setFacebookConnector();
// Construct Facebook4j Reading object to define Facebook Graph API reading options
Reading reading = setFacebookReading();
// Instanciate Facebook4j User object to store user information
User userFb = facebook.getUser(userId, reading);
return userFb;
}
Upvotes: 0
Views: 606