2014-06-06 27 views
10

içinde çözülemez android.I ile çalışıyorum. Benim facebook sdk entegre edildi benim app.Now facebbok sdk hatası "Applink çözülemez" gösterir. Nasıl bu sorunu çözebilir.Lütfen bana yardım etApplink facebook SDK

+0

Kontrol [bu] (http://stackoverflow.com/questions/23856540/fackbook-sdk-throws-error) – SimpleGuy

+0

Bu soru önerilen bir çözüm sunuyor - http://stackoverflow.com/questions/23856540/fackbook-sdk-throws-error – MackAttack

cevap

0

Facebook android yeni, tru bu ...

LoginButton loginButton = (LoginButton) findViewById(R.id.btn_facebook); 
    loginButton.setReadPermissions("public_profile"); 
    mCallbackManager = CallbackManager.Factory.create(); 
    loginButton.registerCallback(mCallbackManager, new FacebookCallback<LoginResult>() { 

private ProfileTracker mProfileTracker; 

@Override 
public void onSuccess(LoginResult loginResult) { 
    mProfileTracker = new ProfileTracker() { 
     @Override 
     protected void onCurrentProfileChanged(Profile profile, Profile profile2) { 
      Log.v("facebook - profile", profile2.getFirstName()); 
      mProfileTracker.stopTracking(); 
     } 
    }; 
    mProfileTracker.startTracking(); 
} 

@Override 
public void onCancel() { 
    Log.v("facebook - onCancel", "cancelled"); 
} 

@Override 
public void onError(FacebookException e) { 
    Log.v("facebook - onError", e.getMessage()); 
} 
}); 

Ve onActivityResult() içinde

, zaten şu gibi yapmış sonra onun api güncellemek olan

if (mCallbackManager.onActivityResult(requestCode, resultCode, data)) 
    return; 
İlgili konular