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