[英]Android - Error while trying to login with Facebook SDK
I am unable to log into the facebook SDK if the Facebook app is installed on my phone.如果我的手机上安装了 Facebook 应用程序,我将无法登录 facebook SDK。
I succeed in logging in if I disable the Facebook app through settings.如果我通过设置禁用 Facebook 应用程序,我将成功登录。 The SDK then opens a webview and it works perfectly. SDK 然后打开一个 webview 并且它工作得很好。 Unfortunately, I'm not getting any logs, so I don't have much more information than this.不幸的是,我没有得到任何日志,所以我没有比这更多的信息。
If anyone has an idea of what could be happening, it would be greatly appreciated.如果有人知道可能发生的事情,将不胜感激。 Note that I do succeed in logging in if the app is not installed, so I don't think it's a configuration problem.请注意,如果未安装该应用程序,我确实可以成功登录,因此我认为这不是配置问题。
If login success in webview
and not working in native installed Facebook
app如果在webview
中登录成功并且无法在本机安装的Facebook
应用程序中工作
So problem with your HashKeys
not match with Facebook
app.因此,您的HashKeys
与Facebook
应用程序不匹配的问题。
The error occurs because of invalid hash key .由于无效的 hash 密钥而发生错误。
Generate key and change it生成密钥并更改它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.