gpt4 book ai didi

android - 无法使用oauth登录到Facebook

转载 作者:行者123 更新时间:2023-11-30 02:02:29 24 4
gpt4 key购买 nike

我正在使用 Xamarin oauth 登录 facebook我从 this url 下载了示例应用程序

然后我创建了一个 facebook 应用程序并获得了一个应用程序 ID

我试图在应用程序 ID 的代码块中替换它

var auth = new OAuth2Authenticator (
clientId: "113265011xxxx6",
scope: "",
authorizeUrl: new Uri ("https://m.facebook.com/dialog/oauth/"),
redirectUrl: new Uri ("http://www.facebook.com/connect/login_success.html"));

auth.AllowCancel = allowCancel;

当我尝试登录 facebook 时出现以下错误屏幕

enter image description here

最佳答案

转到此 URL https://developers.facebook.com/apps/YOUR-APP-ID并在 Client OAuth settings 下启用“Client OAuth login”。

enter image description here

同时为 Valid OAuth redirect URIs 提供一个有效的 url>

关于android - 无法使用oauth登录到Facebook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31269320/

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