title: Android Facebook SSO does not work when fb is already installed on device
body: <p>I want to implement Single Sign On with Facebook in an android application. I have the following problem: </p>
  
  <p>I can receive access token and all the data I need when the facebook app is not installed on device. But when I install the facebook application nothing seems to work. When I launch the activity that implements SSO it just loads for a while and then it is paused without returning anything.</p>
  
  <p>I have a signed apk and I think I have the right hash key in the fb developers page. </p>
  
  <p>Does anyone know why could this problem appear? Is there something I need to change in the facebook android sdk?</p>
  
  <p>Thank you very much in advance!</p>
  
  <p>Edit:
  I tried what YShinkarev said here -> <a href="https://stackoverflow.com/questions/8764777/android-facebook-sdk-login-window-disappear">Android - facebook sdk Login window disappear</a> (commenting some lines in facebook.java code and disabling SSO). Now I give credentials and receive access token. But shouldn't it be that I received it automatically if I was signed in from the fb app? I do not understand why this does not work..</p>