gpt4 book ai didi

android - Android 的 Facebook 登录 SDK 的 Facebook 登录错误给出 : "given URL is not allowed by.."

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:56:22 25 4
gpt4 key购买 nike

我在我的 Android 应用程序中实现了 Facebook 登录 SDK,有时在单击“使用 Facebook 登录”按钮后会出现以下错误:-

given URL is not allowed by the application configuration: one or more of the given URLs is not allowed by the app's setting. to use this URL you must add a valid native platform in your app's settings.

Facebook 登录在没有安装 Facebook 应用程序(然后登录由浏览器完成)时完美运行,但在某些设备中,使用 Facebook 应用程序(两者主应用程序和精简版应用程序)它给出了上述错误。我也实现了 Google Login API。它工作得很好。

我需要这个错误的根本原因。

最佳答案

对于 Facebook 身份验证,您需要在 Facebook 控制面板中添加 Android 作为平台。

您必须转到:https://developers.facebook.com/apps

1. Select your app
2. Click settings
3. Enter contact email (for publishing)
4. Click on +add platform

并按照此问题的已接受答案中提到的步骤进行操作。 Given URL is not permitted by the application configuration using FirebaseUI

关于android - Android 的 Facebook 登录 SDK 的 Facebook 登录错误给出 : "given URL is not allowed by..",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48541595/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com