2012-01-09

How to deal with the authorization results of Facebook Android SDK

In the last release of my app "Jyoya Bell", I implemented a Facebook connection with using Facebook Android SDK.
The framework contains two way of login sequences, one is Single Sign-On(SSO) and the other is dialogs with WebView.
Both are so useful and are enabled by default (SSO have first priority. If end users have already installed Facebook app, the SSO sequence will start).
However, from implementing point of view, there are some difficulties. The difficulties is that authorization result is not constant.
The following introduce how I dealt with the results from both SSO and WebView.