Facebook C# MVC MVC3 将令牌与 asp.net 会员场景一起存储
您好,有人有链接或者可以提供一些关于如何使用 facebook C# SDK 提供 facebook 访问凭据以及 ASP.Net 会员资格的指导吗?
基本上我想做的是在我的个人资料视图上有某种连接按钮,单击该按钮会打开 facebook 应用程序授权窗口,如果用户登录并同意返回或访问 facebook auth cookie,以便我可以在本地存储我的数据库。
大约 9 个月前,我最初试图弄清楚如何使用 dotnetopenauth 来做到这一点,但最终放弃了。任何帮助表示赞赏。谢谢!
Hi does someone have a link or can offer some guidance on HOW the facebook C# SDK could be used to provide access credentials to facebook along side ASP.Net membership?
Basically what i would like to do is have some kind of connect button on my profile view that when clicked opens the facebook app authorization window, if the user signs in and agrees the facebook auth cookie is returned or accessible so i can store in locally in my DB.
I originally tried to figure out how to do this using dotnetopenauth about 9 months ago and eventually gave up. ANY help is appreciated. thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我没做过,但我想应该不会太难。
我假设您已经知道如何使用 C# SDK 对 Facebook 用户进行“身份验证”。此时,您认为它们已“经过身份验证”,并可能使用 FormsAuthentication.SetAuthCookie() 从默认 ASP.NET 成员身份的角度手动对用户进行身份验证。
I haven't done it, but it shouldn't be too hard I think.
I'm assuming you already know how to "authenticate" users with Facebook using the C# SDK. At that very point where you consider them "authenticated" hook into it and perhaps use FormsAuthentication.SetAuthCookie() to manually authenticate the user from the default ASP.NET membership's perspective.