@Override public void onViewUpdate(IOCContainer container) { super.onViewUpdate(container); if (container != null) { setErrorHandler((SocializeErrorHandler) container.getBean("socializeUIErrorHandler")); } // Make sure we notify after authenticate to dismiss any pending dialogs. onAfterAuthenticate(container); }
@Override public final void onViewLoad(IOCContainer container) { super.onViewLoad(container); setErrorHandler((SocializeErrorHandler) container.getBean("socializeUIErrorHandler")); consumerKey = getConsumerKey(container); consumerSecret = getConsumerSecret(container); fbAppId = getFacebookAppId(container); SocializeAuthListener listener = getAuthListener(container); onBeforeAuthenticate(container); getSocialize().authenticate(getContext(), consumerKey, consumerSecret, listener); }