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

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

问题描述

我正在尝试构建一个使用 Facebook SDK for 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 

我用remote_app_id"搜索过StackOverflow,结果是iOS中的Bundle ID",但我不知道remote_app_id"在Android中是什么意思.我已经在我的 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.

推荐答案

我解决了这个问题.问题是,我使用keytool"生成的Key Hash"是错误的.当keytool"提示输入密码时,您必须使用android"(不带引号).我使用的是我自己的密码.当我更改密码时,问题就消失了.希望这会有所帮助.

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天全站免登陆