Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created April 26, 2012 16:03
Show Gist options
  • Save pencilcheck/2500597 to your computer and use it in GitHub Desktop.
Save pencilcheck/2500597 to your computer and use it in GitHub Desktop.
facebook.authorize(this, new String[] {}, new DialogListener() {
@Override
public void onComplete(Bundle values) {
Intent gamelist = new Intent(LoginActivity.this, GameListActivity.class);
startActivity(gamelist);
}
@Override
public void onFacebookError(FacebookError error) {
vars.createToast(error.toString());
mLoginButton.setEnabled(true);
}
@Override
public void onError(DialogError e) {
vars.createToast(e.toString());
mLoginButton.setEnabled(true);
}
@Override
public void onCancel() {
vars.createToast("Login cancelled");
mLoginButton.setEnabled(true);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment