2013-03-10 2 views
0

그냥 내 안드로이드 응용 프로그램과 함께 페이스 북의 통합을 구현하기 위해 노력하고 있지만 페이스 북 로그인 나에게 Misconfig을 보여줍니다, 나는이 post에서 생성 된 내 페이스 북의 응용 프로그램 설정이 like thisMisconfig 페이스 북 로그인 안드로이드에 대한

내 HASHKEYS의 확신 그리고 그것은 아직도 나에게 그 오류를 제공합니다 : S

편집 : 내 코드

Request.executeMeRequestAsync(session, 
          new Request.GraphUserCallback() { 

           // callback after Graph API response with 
           // user object 
           @Override 
           public void onCompleted(GraphUser user, 
             Response response) { 
            if (user != null) { 


             userPassword = user.getId(); 
             String email = user.getLink(); 
             email = email.replace(".", ""); 
             email = email 
               .replace("http://", ""); 
             email = email.replace("https://", 
               ""); 
             email = email.replace("/", ""); 
             email = email + "@anydomains.com"; 

             userMail = email; 
             new Login(true).execute(); 

             // register with fb 


            } 
           } 
          }); 
+0

후 당신에게 코드에서 여기를 볼 수 있습니다 자세한 내용은 – DjHacktorReborn

+0

또는 http://stackoverflow.com/questions/12382558/app-is-misconfigu를 읽어보십시오. red-for-facebook-login-android-facebook-integration-issue – DjHacktorReborn

+0

@DjHacktorReborn 내가 편집하여 내 코드를 추가했습니다. –

답변

0

나는 당신이 시도 할 수 있다고 생각 :

onSessionstateChange을 참조하십시오. 예외 null이 아닙니다. 서명이 일치하지 않으면 Exception에서 앱의 올바른 서명을받습니다 (logcat에서도 볼 수 있음).

UPDATE :

코드 다음은 나를 위해 작동 : 당신의 keyhash가 일치하지 않는 경우

@Override 
protected void onSessionStateChange(SessionState state, Exception exception) 
{ 
    if (exception != null) 
    { 
     Log.i(TAG, exception.toString()); 
    } 
    if (state.isOpened()) 
    { 
     Request request = Request.newMeRequest(this.getSession(), 
            new Request.GraphUserCallback() 
     { 
      @Override 
      public void onCompleted(GraphUser user, Response response) 
      { 

      } 
     }); 
     Request.executeBatchAsync(request); 
    } 
} 

, 당신은 로그 캣

if (exception != null) 
{ 
    Log.i(TAG, exception.toString()); 
} 
관련 문제