0

我正在使用 Facebook4j,当我第一次尝试连接我的 Facebook 帐户时,我现在拥有:

    javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: message - (#100)
 Tried accessing nonexisting field (user_photos) on node type (User)\ncode - 100\

我不知道为什么,但我不使用 user_photos 这很奇怪..

我这样做

FacebookUtility facebookUtility = new FacebookUtility();
User userFb = facebookUtility.getFacebookUser(String.valueOf(idFb));

我的函数 getFacebookUser 是:

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;
    }
4

0 回答 0