1

I am using android facebooksdk with sso for facebook access. It works if the device has facebook app installed. And it is not recognizing whether user is logged in facebook via the default browser. Is there any way to make sso work for browsers

ArathyAnand
  • 71
  • 1
  • 8

2 Answers2

1

The reason android facebooksdk is working with the app, cause the facebook app is integrated to the OS, which helps in detecting the credentials, but in the browser it is not show.

amrit_neo
  • 1,759
  • 4
  • 19
  • 39
0

Please Update below code of your application, it will solve your problem.

public void loginAndPostToWall() {
    facebook.authorize(this, PERMISSIONS, Facebook.FORCE_DIALOG_AUTH,
            new LoginDialogListener());
}

And see below Stack Overflow link for more information.

Facebook Authorization can't login when Official Facebook Application Installed

Community
  • 1
  • 1
Dipak Keshariya
  • 22,193
  • 18
  • 76
  • 128