在json字符串中获取所有facebook的朋友列表,其中包含姓名和ID

时间:2013-02-24 05:57:24

标签: android json facebook

目前我正在这样登录facebook。我需要在用户中属于该loggd的friendslist。我该怎么做?

Session.openActiveSession(this, true, new  Session.StatusCallback() {
        public void call(Session session, SessionState state, Exception exception) {
            if(session.isOpened()){
                // make request to the /me API
                Request.executeMeRequestAsync(session, new Request.GraphUserCallback(){
                    public void onCompleted(GraphUser user, Response response) {
                           if(user != null){
                            fb_login_button.setText("Login as "+user.getFirstName());
 }
                        else{

                        }
                    }                   

                });
            }           
        }

    });

1 个答案:

答案 0 :(得分:0)