0

目前我正在像这样登录facebook。我需要属于该登录用户的好友列表。我怎么做?

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{

                        }
                    }                   

                });
            }           
        }

    });
4

1 回答 1

0

查看Request.newMyFriendsRequest方法。

于 2013-02-25T18:16:28.507 回答