应用程序配置错误的Facebook登录:Android的Facebook的整合问题 [英] App is misconfigured for Facebook login: Android Facebook integration issue

查看:214
本文介绍了应用程序配置错误的Facebook登录:Android的Facebook的整合问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将我与Facebook的应用程序,并为此我使用Facebook的图形API 。我获取个人资料和好友信息。它工作正常我的设备上有的Andr​​oid  2.3 (姜饼),但最近我的客户有面对一个问题时,他正试图通过我的应用程序连接到Facebook。他的设备上4.0 (冰淇淋三明治);他有 Android的群组。当他点击该应用程序,把他带对Facebook的登录界面,登录后一个按钮,他得到一个消息:

I have integrated my application with Facebook, and for this I am using Facebook's Graph API. I am retrieving profile and friends information. It is working fine on my device which has Android 2.3 (Gingerbread), but recently my client has faced an issue while he is trying to connect to Facebook through my app. He has Android 4.0 (Ice Cream Sandwich) on his device. When he clicks a button on the app that takes him to the Facebook login screen, after login he gets a message:

我的应用程序的配置是错误的Facebook登录。 preSS好回去给应用程序,而无需连接到Facebook。

My app is misconfigured for Facebook login. Press Okay to go back to the application without connecting to Facebook.

我没有得到什么问题,无论是与Android版本还是什么。

I am not getting what is the problem whether it is related to Android version or what.

我怎样才能解决这个问题呢?

How can I fix this problem?

推荐答案

我在Facebook的工作,这是一个需要解决的重要问题。对方的回答这个问题,表明禁用SSO是非常糟糕和将打开你的应用程序,可以窃取用户的Facebook凭证恶意的应用程序。

I work at Facebook, and this is an important issue that needs to be addressed. The other answer for this question suggests that disabling SSO is very bad and will open up your app to malicious apps that can steal your user's Facebook credentials.

该黑客启动一个的WebView对话框给Facebook没有SSO,用户必须输入他们的登录凭据到该对话框。那么恶意应用程序可以很容易地窃取这些信息。它始终是建议实施的Facebook SSO正确,以确保您的应用程序的安全性和保护用户的敏感数据。

The hack launches a WebView dialog to Facebook without SSO, and the user must type their login credentials into that dialog. Malicious apps can then steal this information easily. It is always advised to implement Facebook SSO correctly to ensure that your app is secure and protect your user's sensitive data.

此前加入此错误消息,对话框会自动关闭没有任何警告和静默失败。我们增加了此错误信息直观地显示,有一个问题,在你的Facebook应用程序仪表板您的应用程序的配置。对于Android的,如果你检查你的 LogCat中,你会看到,经过pressing好,应该会显示是什么原因造成的认证失败技术性描述的错误消息。

Prior to adding this error message, the dialog would automatically close without warning and fail silently. We added this error message to visually display that there is an issue with your app configuration in your Facebook app dashboard. For Android, if you check your LogCat, you'll see that after pressing "Okay", there should be an error message that will display a more technical description of what is causing the authentication to fail.

例如,如果您使用我们的Hackbook的例子,并没有提供自己的APP_ID在源代码中并没有你的哈希键添加到仪表盘,你会看到后,pressing好在LogCat中这个错误本地SSO对话框(如果Util.ENABLE_LOG设置为true):

For example, if you use our Hackbook example and did not supply your own APP_ID in the source and did not add your hash key to the dashboard, you'll see this error in LogCat after pressing "Okay" in the native SSO dialog (if Util.ENABLE_LOG is set to true):

D / Facebook的检查(24739):登录失败:invalid_key:Android的关键不匹配。你的钥匙uk3udeH7vrOGNFH2FJjdJbdWJWI不匹配您的应用程序设置中指定允许的密钥。请检查您的应用程序设置在 http://www.facebook.com/developers

D/Facebook-authorize(24739): Login failed: invalid_key:Android key mismatch. Your key "uk3udeH7vrOGNFH2FJjdJbdWJWI" does not match the allowed keys specified in your application settings. Check your application settings at http://www.facebook.com/developers

我们添加了视觉错误信息来帮助你。这在理论上不破previous实施的是否已正确实施开始与的。如果您看到此错误消息,这意味着你没有正确的仪表板配置您的应用程序设置。
仔细检查你的Andr​​oid类/包名,Android的哈希键等,如果你正确地做了一切,你不会看到此消息。

We added the visual error message to help you. This, in theory, does not break previous implementations if it was implemented correctly to begin with. If you see this error message, that means you did not configure your app settings correctly on your dashboard.
Double check your Android Class/Package name, Android hash keys, etc. You will not see this message if you did everything correctly.

总结,你得到的错误消息,因为有一个问题,你的应用程序的配置,例如,在仪表板的Andr​​oid哈希键之间的不匹配。 Facebook前添加了此错误信息,对话框将启动,然后自动关闭并失效。为了解决这个问题,请检查您的LogCat中的任何错误信息,并确保你拥有了一切正确实施。您可以在我们的文档,以确保你拥有了一切正确的。不要使用公认的答案为这个问题。

In summary, you are getting that error message because there is an issue with your app configuration, for example, a mismatch between the Android hash keys in your dashboard. Before Facebook added this error message, the dialog would launch, then automatically close and fail. To fix this, check your LogCat for any error messages and make sure that you have everything implemented correctly. You can read up on our documentation to make sure you have everything correct. Do not use the accepted answer for this question.

您也可以按照外部的bug报告一个Facebook的开发者报告了更多的更新。

You can also follow the external bug report that a Facebook developer has reported for more updates.

这篇关于应用程序配置错误的Facebook登录:Android的Facebook的整合问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆