【发布时间】:2015-06-11 12:58:29
【问题描述】:
我正在用 C# 构建一个 Windows Store 8.1 应用程序。这是一个照相亭应用程序,许多不同的人将走到一台设备前拍照。
该应用程序的一项功能是能够在社交媒体网站上分享您的照片。我能够使用 WebAuthenticationBroker 实现 Facebook 登录。但是,我接下来需要做的是发布他们的照片,然后退出 Facebook。我想要的最后一件事是让其他人带着其他人的缓存凭据来到照相亭。
我可以就如何在此处进行操作提出任何建议。下面是我用来登录的代码:
WebAuthenticationResult authenticationResult = await WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions.None, new Uri("https://www.facebook.com/dialog/oauth?client_id=MyAppId&response_type=token&scope=publish_actions&redirect_uri=" + WebAuthenticationBroker.GetCurrentApplicationCallbackUri()));
通过极大的努力,我还能够捕捉到 Facebook 注销 URL 的样子:
有人想出这个吗?
【问题讨论】:
标签: c# facebook facebook-graph-api authentication