Facebook login fails on some devices

后端 未结 10 2385
遥遥无期
遥遥无期 2021-01-04 21:11

I have implemented the Facebook login and it works fine on some devices/AVDs. My development device is a Gingerbread phone, but testing it with a 4.1.1 device, it simply doe

10条回答
  •  孤城傲影
    2021-01-04 21:54

    Try inserting this line where you define your login button in the java source code

    LoginButton fb_button = (LoginButton)findViewById(//your resource id);
    fb_button.setLoginBehavior(SessionLoginBehavior.SUPPRESS_SSO);
    

提交回复
热议问题