Java 类com.facebook.android.DialogError 实例源码

项目:Socialite    文件:FacebookConnector.java   
public void onError(DialogError error) {
    SessionEvents.onLoginError(error.getMessage(),SessionListenerType.FACEBOOK_SESSION_LISTENER);
}
项目:itmarry    文件:ConnectPlugin.java   
public void onError(DialogError e) {
    Log.d(TAG, "other error");
    this.fba.cb.error("Dialog error: " + e.getMessage());
}
项目:itmarry    文件:ConnectPlugin.java   
public void onError(DialogError e) {
    Log.d(TAG, "other error");
    this.fba.cb.error("Dialog error: " + e.getMessage());
}
项目:kaorisan    文件:ShareFacebookActivity.java   
public void onError(DialogError error) {
    showToast("Authentication with Facebook failed!");
}
项目:kaorisan    文件:LoginActivity.java   
@Override
public void onError(DialogError error) {
    SessionEvents.onLoginError(error.getMessage());
}
项目:SevenWonders    文件:FacebookApplicationPost.java   
public void onError(DialogError e) {
//ALog.m();
    showErrorAndFinish();        
  }
项目:SevenWonders    文件:LoginAndGetPermissions.java   
public void onError(DialogError error) {
//ALog.m();

    showErrorAndFinish();
  }
项目:haxsync    文件:AuthorizationActivity.java   
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //setContentView(R.layout.main);
    String[] permissions = {"offline_access", "read_stream", "user_events", "friends_events", "friends_status", "user_status", "friends_photos", "user_photos", "friends_about_me", "friends_website", "email", "friends_birthday", "friends_location"};
    FacebookUtil.facebook.authorize(AuthorizationActivity.this, permissions, Facebook.FORCE_DIALOG_AUTH, new DialogListener() {
        @Override
        public void onComplete(Bundle values) {
            FacebookUtil.accessToken = FacebookUtil.facebook.getAccessToken();
            Log.i("Expires", String.valueOf(FacebookUtil.facebook.getAccessExpires()));;
            AccountManager am = AccountManager.get(AuthorizationActivity.this);
            Account account = am.getAccountsByType(AuthorizationActivity.this.getString(R.string.ACCOUNT_TYPE))[0];
            am.setPassword(account, FacebookUtil.facebook.getAccessToken());
            SharedPreferences prefs = AuthorizationActivity.this.getSharedPreferences(AuthorizationActivity.this.getPackageName() + "_preferences", MODE_MULTI_PROCESS);
            SharedPreferences.Editor editor = prefs.edit();
            editor.putInt("permission_level", FacebookUtil.PERMISSION_LEVEL);
            editor.putLong("access_expires", FacebookUtil.facebook.getAccessExpires());
            editor.commit();
            ContentResolver.requestSync(account, ContactsContract.AUTHORITY, new Bundle());
            ContentResolver.requestSync(account, CalendarContract.AUTHORITY, new Bundle());
        //  Log.i(TAG, ContentResolver.);
            //Log.i(TAG, "Calendar :" + ContentResolver.isSyncActive(account, CalendarContract.AUTHORITY));
        //  Log.i(TAG, "Contacts :" + ContentResolver.isSyncActive(account, ContactsContract.AUTHORITY));
            FacebookUtil.isExtendingToken = false;
            AuthorizationActivity.this.finish();
        }

        @Override
        public void onFacebookError(FacebookError error) {
            Log.i(TAG, "fberror");
            AuthorizationActivity.this.finish();
        }

        @Override
        public void onError(DialogError e) {
            Log.i(TAG, "error");
            AuthorizationActivity.this.finish();
        }

        @Override
        public void onCancel() {
            Log.i(TAG, "cancel");
            AuthorizationActivity.this.finish();
        }
    });
}
项目:facebook-android-sdk    文件:Tests.java   
public void onError(DialogError e) {
    e.printStackTrace();
}
项目:facebook-android-sdk    文件:Tests.java   
public void onError(DialogError e) {
    e.printStackTrace();
}
项目:pico-phonegap-base    文件:ConnectPlugin.java   
public void onError(DialogError e) {
    Log.d(TAG, "other error");
    this.fba.error("Dialog error: " + e.getMessage(), this.fba.callbackId);
}
项目:pico-phonegap-base    文件:ConnectPlugin.java   
public void onError(DialogError e) {
    Log.d(TAG, "other error");
    this.fba.error("Dialog error: " + e.getMessage(), this.fba.callbackId);
}