[英]Facebook login breaks when Facebook app is installed
I'm building an Android app that allows the user to log in with his facebook account. 我正在构建一个Android应用,允许用户使用其Facebook帐户登录。 I followed the official tutorial and got it working perfectly.
我遵循了官方教程,并使其正常运行。 That is untill I installed the facebook app on my phone.
直到我在手机上安装了Facebook应用程序。 When I try to log in and I press "log in with facebook" button I get a screen switch for half a second and then I get back to my login screen where I was before.
当我尝试登录并按“使用Facebook登录”按钮时,屏幕切换了半秒钟,然后返回到以前的登录屏幕。
If I uninstall the app everythings works again. 如果我卸载该应用,一切将再次正常运行。 I believe the app is interfearing but I don't know how to handle it, I have found no one with my same problem.
我认为该应用程序令人生厌,但我不知道该如何处理,我没有人遇到同样的问题。
I follow the official tutorial step by step, I have a main activity with a fragment containing a button. 我逐步按照官方教程进行操作,我有一个主要活动,其中包含一个包含按钮的片段。 Usually if you click the button the facebook login screen pops up and you're able to enter your credential.
通常,如果您单击按钮,则会弹出Facebook登录屏幕,并且您可以输入凭据。
Anyone know how to handle this? 有人知道如何处理吗?
Do you add you application package and hash to Android facebook app on developers.facebook.com ? 您是否将应用程序包添加并哈希到developers.facebook.com上的Android facebook应用程序? If you login using SDK UI, not installed Facebook app - key does not checked.
如果使用SDK UI登录,则未安装Facebook应用-未选中密钥。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.