react-native - 密钥哈希与 facebook react-native 应用程序中存储的任何密钥哈希不匹配
问题描述
我正在开发 react-native 最新版本 60+。我在调试模式下集成了 facebook 登录,但出现问题错误:
Error: SERVER_ERROR: [code] 1349195 [message]: The key hash does not match any stored key hashes. Go to https://developers.facebook.com/docs/facebook-login/android for more information. [extra]:
我打开新终端并使用 is 命令获取密钥哈希:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
并在 facebook 开发人员上添加 bebug 密钥哈希。但我得到了错误。
解决方案
尝试使用文件android/app/debug.keystore
cd <your project>
然后
keytool -exportcert -alias androiddebugkey -keystore android/app/debug.keystore | openssl sha1 -binary | openssl base64
推荐阅读
- python - 如何将当前excel单元格与同一列中的前一个excel单元格进行比较
- java - 一个 Java 模块可以导出一个包,其名称是另一个模块的包的子包吗?
- pip - 如何运行 pip install -U
与 conda 环境..yml - webpack - “main”和“renderer”文件夹“electron-webpack”有什么区别?
- php - 用户购买 WooCommerce 会员订阅后的 wp_insert_post
- django - CREATE 上 DRF 中的多部分图像上传
- powershell - Powershell函数在第一次调用时不起作用
- google-bigquery - 无法在旧版 SQL 查询中引用标准 SQL 视图 - GBQ & IICS
- azure - 日本东部地区的认知 OCR 服务停止工作
- python - 如何在 Tensorflow 中对 10% 的数据集进行采样?