This is my code for logging in to facebook.
mLoginButton = (LoginButton) findViewById(R.id.login); // restore session if one exists SessionS
You need to generate the hash key of your system and just place it by editing the existing facebook App.