Android的Facebook的SDK 3.0给出了" remote_app_id不匹配存储的ID"而登录 [英] Android Facebook SDK 3.0 gives "remote_app_id does not match stored id" while logging in

查看:121
本文介绍了Android的Facebook的SDK 3.0给出了" remote_app_id不匹配存储的ID"而登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图构建一个使用Facebook的SDK为Android 3.0应用程序。但是,当我试图调用

I'm trying to build a app that uses Facebook SDK for Android 3.0. But when I'm trying to call

Session.openActiveSession

它只是简单地给了我与CLOSED_LOGIN_FAILED一个SessionState会,并LogCat中是:

It just simply gives me a SessionState with CLOSED_LOGIN_FAILED, and LogCat is:

12-16 00:03:40.510: W/fb4a:fb:OrcaServiceQueue(4105): com.facebook.orca.protocol.base.ApiException: remote_app_id does not match stored id 

我有搜索的StackOverflow与remote_app_id,结果是捆绑ID,在iOS上,但我不知道什么是remote_app_id是指机器人。我已经设置了包的名字和我的Facebook应用程序设置的活动名称。我不知道的错误的原因。

I have searched StackOverflow with "remote_app_id" and the results are the "Bundle ID" in iOS, but I don't know what does the "remote_app_id" means in Android. I have already set the package name and the activity name in my Facebook app settings. I have no idea of the reason of the error.

推荐答案

我解决了这个问题。问题是,密钥散列这是我使用产生的密钥工具是错误的。当密钥工具会提示输入密码,你必须使用机器人它(不带引号)。我是用我自己的密码代替。当我改变了我的密码,这个问题刚刚飞走了。希望这有助于。

I solved this question. The problem is, the "Key Hash" which I generated using "keytool" was wrong. When the "keytool" prompts for a password, you have to use "android" for it (without quotes). I was using my own password instead. When I changed my password, the problem just flew away. Hope this helps.

这篇关于Android的Facebook的SDK 3.0给出了" remote_app_id不匹配存储的ID"而登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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