目前我正在像这样登录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{
}
}
});
}
}
});