facebook login dialog disappears soon after loading

前端 未结 3 2066
余生分开走
余生分开走 2020-12-18 08:43

I have implemented FB in my application an it is working perfectly in my samsung device o/s 1.5. However in the HTC Evo the FB login dialog disappears soon after loading. it

相关标签:
3条回答
  • 2020-12-18 09:02

    I got this FacebookException because of developers site was not working.After developer facebook site worked, this issue was resolved.

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

    I had the same issue. It was because I was connected with the official Facebook application. I disconnect from the official Facebook application and then I was able to launch the login dialog. The problem is with SSO.

    I solved it by forcing the login dialog rather than SSO by passing FORCE_DIALOG_AUTH in the authorize methods in Facebook.java.

    0 讨论(0)
  • 2020-12-18 09:08

    The issue is actually that you haven't set up your Key Hash for your application with Facebook yet which is required to use SSO. FORCE_DIALOG_AUTH actually disables SSO, but this is a poorer user experience. Instead, take a look at an article I put together after struggling with this issue which describes the correct way to tackle your problem:

    http://sean.lyn.ch/2011/07/android-the-facebook-sdk-sso-and-you/

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