Android Facebook 登录在调试中有效,在已发布的应用中无效

Android Facebook login works in debug, doesn't work in published app

我有一个 Android 应用程序可以登录 Facebook。我已经在我的设备上测试了很多次(它安装了 Facebook 应用程序,如果有帮助的话)并且登录工作完美无缺。我已将我的应用程序提交到 Play 商店,但用户无法在发布版本中使用 Facebook 登录。我注意到,即使我安装了 Facebook 应用程序,也有一个网络浏览器 window,它会瞬间显示 Facebook 登录页面之类的东西,它消失了,我的 activity 指示器(应该停止并转到next activity 登录后)永远旋转。

我正在使用 Parse 1.9.1 和 ParseFacebookUtilsV4-1.9.1,我使用 ParseFacebookUtils 登录:

ParseFacebookUtils.logInWithReadPermissionsInBackground

同一个用户,同一个用户,一切都一样。在debug模式下,它只是登录,但在release中却没有,我不知道为什么,我无法调试。可能的原因是什么?我该如何调试?

检查 https://developers.facebook.com for your app. You need to have both key hashes for release and debug version set in app developer console. It might be that you've just set the key hash for the debug environment. For more see Setting a Release Key Hash 上的 Key Hash 设置。希望对你有帮助。