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

Categories

Facebook login doesn't work on my android app.

I am using below Facebook SDK function.

LoginManager.getInstance().logInWithReadPermissions(activity, PERMISSIONS)

The web browser is opened and I faced the below screen by this upper line.

enter image description here

Sorry for Korean, the text means You have previously logged into the X app with Facebook. Would you like to keep this right?

If I clicked continue/agree, there is nothing! Just white screen...

But Actually, it works on another device! I have two phones, and one works fine, but the other doesn't work!

The difference is web view.

  1. Normal Case The Facebook screen is opened on an internal web view.

  2. Abnormal Case The Facebook screen is opened on an external web browser app (Chrome)

I think that my app's callback is not called after the Facebook Login process. Because it was processed on another app (Chrome). If it was processed on an internal web view, it may work.

But I don't know how can I control it...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
6.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...