Applink无法在facebook SDK中解析

时间:2014-06-06 09:02:47

标签: android sdk android-facebook applinks

我正在使用android.I已将facebook sdk集成到我的app.Now facebbok sdk显示错误“Applink无法解决”。如何解决这个问题。请帮助我我是android的新手

1 个答案:

答案 0 :(得分:0)

Facebook正在更新他的api然后把这个... ...

  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());
}
}); 

在onActivityResult()中,你已经完成了如下操作,

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