无法获取的Facebook与Windows 8.1的工作单点登录 [英] Cannot get Facebook single signon with windows 8.1 to work

查看:117
本文介绍了无法获取的Facebook与Windows 8.1的工作单点登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关Facebook和微软的支持Facebook的SSO的好消息后,我已经试过了的WinRT / XAML / C#为Windows 8.1的应用程序来实现这一点,但我无法得到它的工作。

After the great news about Facebook and Microsoft support Facebook SSO I have tried to implement this in a winrt/xaml/c# app for windows 8.1, however I cannot get it to work.

我已经注册与Facebook应用程序,并在应用程序的设置来设置应用程序的SID

I have registered the app with facebook and set the app's SID in the app's settings.

这是登录代码:

Uri sid = WebAuthenticationBroker.GetCurrentApplicationCallbackUri();
string callbackURL = sid.ToString();
String facebookURL = "https://www.facebook.com/dialog/oauth?client_id=" + Uri.EscapeDataString(AppId) + "&display=touch&response_type=token&scope=publish_stream&redirect_uri=" + Uri.EscapeDataString(callbackURL);

var startUri = new Uri(facebookURL);
WebAuthenticationResult result = await WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions.None, startUri);

这将打开Facebook的登录对话框,我可以登录,并在下一个对话框说你有已经授权。

This will open the Facebook login dialog, I can log in, and the next dialog says "You have already authorized .

不过,点击好或跳过按钮无响应回我的应用程序。AuthenticateAsync()永远不会返回。

But clicking on the "Okay" or "Skip" buttons gives no response back to my app. AuthenticateAsync() never returns.

如果我改变和放大器;显示参数为触摸它的工作原理,但是这不是我想要的,因为它显示了一个手机登录网页没有为此而设计的。

If I change the &display parameter to "touch" it works, but this is not what I want since it shows a mobile login web page not designed for this purpose.

什么是错的?

推荐答案

这个问题已经解决了。能否请您给这一个尝试,让我们知道如果你还在看这个问题?

this issue has been resolved. Can you please give this a try and let us know if you are still seeing the issue?

这篇关于无法获取的Facebook与Windows 8.1的工作单点登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆