c# - 应用程序不允许 Windows Phone 8 Facebook 登录给定 URL

标签 c# facebook windows-phone-8

我正尝试按照 facebooksdk.net 上的教程将 Facebook 登录集成到我的应用程序中.我正在尝试使用 Facebook button control .

当我点击按钮时出现以下错误:

Given URL is not allowed by the Application configuration.: or more of the given URLs is not allowed by the App's settings. must match the Website URL or Canvas URL, or the domain must be a of one of the App's domains.

引用截图-

Facebook Given URL is not allowed by Application Configuration

根据 some sources当前存在一个错误,如果您在应用设置的高级部分的“有效 OAuth 重定向 URI”字段中没有任何条目,Windows Phone 的 Facebook 登录将无法工作。这可以通过在此字段中添加“https://m.facebook.com/dialog/return/ms”来解决。

但这并没有解决问题,那么我还能尝试什么来解决这个问题呢?

最佳答案

Facebook 及其 API 中存在错误:

There is currently a bug which will prevent Facebook Login for Windows Phone from working if you have any entries in the "Valid OAuth redirect URIs" field in the Advanced section of your app settings. This can be worked around by adding "https://m.facebook.com/dialog/return/ms" in this field.

该建议是错误的,您实际上需要将 https://www.facebook.com/ 添加到应用设置高级部分的“有效 OAuth 重定向 URI”字段中。

Example of setting

关于c# - 应用程序不允许 Windows Phone 8 Facebook 登录给定 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23132860/

相关文章:

mysql - 在社交网络数据库中存储 friend

javascript - 外部脚本在 Windows Phone App 8.1 中不起作用

C# XMPP X-FACEBOOK-PLATFORM SASL 实现

android - Keytool 不询问密码(使用 Facebook lib 和 android)

c# - HttpClient 中的 GetStringAsync 方法在 WP8 中抛出异常

c# - 我的游戏如何在开始屏幕上有一个宽图标?

c# - 是否可以使用 Rider 和 launchSettings - 可执行文件调试 .net core

Javascript 和 C# 舍入 hell

c# - 来自麦克风的音频流

c# - 我应该在哪里处理子表单