1

I am implementing facebook Android SSO in my app. It works fine with the devices not having facebook app installed. However, with a device with fb app installed, blank screen appears after the progress dialog. facebook sso white screen

The app login never appears as shown here on facebook android guide. (https://developers.facebook.com/attachment/AndroidSSO_basicperm.png) I am using the same code from fb guide as a demo. I have generated the keyhash as shown there. Please help.


EDIT: I generated a new keyhash after signing it with new keystore using eclipse. With that keyhash it is working fine which means that there is a problem with the keyhash generated from android debug. I was generating the debug keyhash as answered here (Key hash for Android-Facebook app). But sso is not working.

Community
  • 1
  • 1
hshed
  • 657
  • 2
  • 8
  • 21

2 Answers2

0

As I have understood, there's a bug with using SSO on a phone that already has the Facebook app installed. Although it's claimed to be fixed, I've had several issues with this aswell. For me, forcing the login dialog works:

fb.authorize(*YourActivity*.this, new String[] {"publish_stream"}, Facebook.FORCE_DIALOG_AUTH, new DialogListener() {

Also, you could save the access token and expires token in sharedPreferences to prevent user from having to log in every time.

If this doesn't work, please post the code you're using.

Plasma
  • 1,903
  • 1
  • 22
  • 37
  • I am using the code from facebook android guide. And the FORCE_DIALOG_AUTH works for me too. But I don't want to use that. – hshed Sep 30 '12 at 11:05
0

You need to use password 'android' when creating the hash

Gray
  • 7,050
  • 2
  • 29
  • 52
tomi
  • 525
  • 9
  • 20