Android KeyHash调试时有效,而我从APK安装应用程序时无效

编程入门 行业动态 更新时间:2024-10-27 03:29:27
本文介绍了Android KeyHash调试时有效,而我从APK安装应用程序时无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用此获得了KeyHash. 当然,我将此(密钥哈希,程序包名称和主要活动类)复制到了Facebook设置据此.

I got KeyHash using this. Of course, I copied this (KeyHash, package name and main activity class) to facebook settings according this.

当我调试我的应用程序时,它看起来不错(我可以登录和注销我想要的次数),但是当我创建APK并运行该应用程序时,我收到了常见错误无效的密钥哈希,该密钥哈希与任何存储的哈希都不匹配密钥哈希..."

And when I debug my app it looks fine (I can login and logout how many times I want), but when I create APK and run the app I received common error "invalid key hash the key hash does not match any stored key hash..."

除了正确设置KeyHash并将其添加到您的Facebook App ID的Android设置之外,我还需要什么?

What do I need to except getting right KeyHash and adding it into your Facebook App ID's Android settings?

推荐答案

您必须致电

FacebookSdk.sdkInitialize(getApplicationContext());

致电

FacebookSdk.getApplicationSignature(getApplicationContext());

避免获得 NULL

to avoid getting NULL

这对我来说很好.

更多推荐

Android KeyHash调试时有效,而我从APK安装应用程序时无效

本文发布于:2023-11-13 21:38:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1585390.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:而我   应用程序   Android   KeyHash   APK

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!