How to disable facebook native app for user login

后端 未结 4 1988
南旧
南旧 2020-12-21 08:08

I have a problem with facebook user login in my android application. I want users use their facebook account to login my system but when I click login button facebook native

相关标签:
4条回答
  • 2020-12-21 08:55

    iOS and Android use something called Single Sign-on (SSO), which means anyone attempting to use Facebook in a 3rd Party app will launch the Facebook App for easier login. If the user has Facebook App installed, it will always launch the app for login - there is no way around it.

    It's actually there for make it easier for the user. The user would usually be logged into the App already so using a 3rd Party FB App would only take a single touch / tap to authorise and use. You will find that user's without the FB app will see the web-based login page.

    0 讨论(0)
  • 2020-12-21 08:55

    Don't enable SSO. This should resolve your problem.

    0 讨论(0)
  • 2020-12-21 08:57

    I'm sure this is possible, unfortunately I forgot how to do it. But as far as I remember the idea is that you should force the login dialog to appear. If I'm not mistaken a boolean parameter should be set to the dialog to force it appear.

    0 讨论(0)
  • 2020-12-21 09:06

    Please update below code of your application.

    mFacebook.authorize(mActivity, permissions, Facebook.FORCE_DIALOG_AUTH,
                new LoginDialogListener());
    

    instead of

    mFacebook.authorize(mActivity, permissions, new LoginDialogListener());
    

    And see below link for more information

    Facebook Login Issue

    0 讨论(0)
提交回复
热议问题