0

I want to implement Single Sign On with Facebook in an android application. I have the following problem:

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.

I have a signed apk and I think I have the right hash key in the fb developers page.

Does anyone know why could this problem appear? Is there something I need to change in the facebook android sdk?

Thank you very much in advance!

Edit: I tried what YShinkarev said here -> Android - facebook sdk Login window disappear (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..

Community
  • 1
  • 1
george
  • 1,386
  • 5
  • 22
  • 38

1 Answers1

4

There's a problem with the android SSO, and it has been acknowledged by facebook as you can see in the Platform Status page.

If the facebook application is present on the device then the SSO is used and it won't work until facebook fixes the problem. There are some other threads here about this problem, for example: logging in to facebook from my app works on emulator but not on device

Community
  • 1
  • 1
Nitzan Tomer
  • 155,636
  • 47
  • 315
  • 299