Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
485 views
in Technique[技术] by (71.8m points)

android - facebook login dialog disappears soon after loading

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 stays for a couple of seconds and vanishes. i have tested it in the emulator 2.2 and it works fine.

what could be the possible reason of the behavior and how can i overcome it?

just found out that it happens when i am logged into facebook in another application. however in applications like photoshop express there is no such issue.

Just what am i missing??

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...