2
의 부분에서 멋진 튜토리얼을 따르려고 노력하고있어, 요청은 결코 반환되지 않습니다, 코드는 아래 예와 같습니다. 내가 놓친 게 있니? 감사?facebook 안드로이드 SDK, newMeRequest 결코
private void makeMeRequest(final Session session) {
// Make an API call to get user data and define a
// new callback to handle the response.
Request request = Request.newMeRequest(session,
new Request.GraphUserCallback() {
@Override
public void onCompleted(GraphUser user, Response response) {
// If the response is successful
if (BuildConfig.DEBUG){
Log.i(TAG, "GraphUserCallback" + user.getId()+" " + response.toString());
}
if (session == Session.getActiveSession()) {
if (user != null) {
// Set the id for the ProfilePictureView
// view that in turn displays the profile picture.
//profilePictureView.setProfileId(user.getId());
profilePictureView.setId(Integer.parseInt(user.getId()));
// Set the Textview's text to the user's name.
userNameView.setText(user.getName());
}
}
if (response.getError() != null) {
// Handle errors, will do so later.
}
}
});
request.executeAsync();
}
OMG를 추가해야합니다. Tks :) –