Code example for MalformedURLException

Methods: d

0
		try { 
			Log.d(TAG, "Logging out from Facebook.");
			facebook.logout(context);
			Log.d(TAG, "Log out from Facebook completed successfully.");
		} catch (MalformedURLException e) {
			Log.d(TAG, "Error while logging out from Facebook.", e);
			throw CommonErrorCode.INTERNAL_ERROR.newApplicationException(e);
		} catch (IOException e) {
			Log.d(TAG, "Error while logging out from Facebook.", e);
			throw CommonErrorCode.CONNECTION_ERROR.newApplicationException(e);
		} 
	} 
	 
	/** 
	 * IMPORTANT: This method must be invoked at the top of the calling activity's onActivityResult() function or 
	 * Facebook authentication will not function properly! If you're connecting from a fragment, you should call the 
	 * fragment's {@link Fragment#onActivityResult(int, int, Intent)} manually from your activity. 
	 *  
	 * @param requestCode The request code for the {@link Activity#onActivityResult(int, int, Intent)}. 
	 * @param resultCode The result code obtained on {@link Activity#onActivityResult(int, int, Intent)}. 
	 * @param data The data intent obtained on {@link Activity#onActivityResult(int, int, Intent)}.