Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

Why the Facebook login popup opened on an external web browser app on my android device

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...


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

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...