Facebook的API登录失败,安装在手机上的应用程序FB机上、在手、应用程序、Facebook

2023-09-12 04:11:28 作者:独自、守候

我建立一个应用程序,它是要对Facebook的支持。我已经下载了Facebook的API和他们的样品从原来的Git回购协议被称为Hackbook。问题是与登录 - 如果原来的FB程序是无法在手机上安装,登录会通过自定义对话框,并一切正常,但如果安装了FB的应用程序时,Hackbook自动重定向到原来的FB的应用程序,然后什么都没有发生。这是不可能的登录。 我已经测试这5个不同的手机,始终是同样的问题。

I am building an app, which is going to have support for facebook. I have downloaded facebook API and their sample called "Hackbook" from original Git repos. The problem is with login - if original FB app is not installed on phone, the login is going through custom dialog and everything works, but if FB app is installed, the Hackbook automatically redirect to original FB app, and then nothing happened. It's impossible to login. I have tested this on five different phones, and always was the same problem.

推荐答案

我也有类似的问题。就我而言,我没有创造使用我的签名密钥的哈希键。我只是使用 debug.keystore 默认签名密钥创建的哈希键。

I had a similar problem. In my case, I had not created a hash key using my signing key. I just had the one hash key created using the debug.keystore default signing key.

只要我在用我的应用程序的发布签名密钥的散列键,这个问题被解决了。如果你还没有这样做,用你的签名密钥(在市场上上传)创建一个新的哈希键,并添加到您的应用程序的Facebook控制面板。

As soon as i created a hash key using my app release signing key, that problem was sorted out. If you haven't already done this, create a new hash key using your signing key (for uploading on the market) and add that to your app's facebook control panel.

希望这有助于。