Android: How can I force a facebook auth by mobile web

前端 未结 1 1728
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 17:31

I want to develop the android app with facebook authentication. But if the phone has facebook application in it, I cannot auth on my app, if not, it works well.

so,

1条回答
  •  借酒劲吻你
    2021-01-06 17:59

    When you use Facebook SDK 3.0 and the login button the best way to force this is setting a LoginBehavior to the LoginButton. This can be done like this:

    LoginButton authButton = (LoginButton) view.findViewById(R.id.authButton);
    authButton.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);
    

    Source: Android - Force Facebook connexion - Stack Overflow

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