我正尝试按照 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.
引用截图-
根据 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”字段中。
关于c# - 应用程序不允许 Windows Phone 8 Facebook 登录给定 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23132860/