首页 文章

集成facebook登录和facebook c#SDK - 不是facebook应用程序

提问于
浏览
3

我下载了样本和SDK的5.0.3测试版,并且很快就在Facebook内部运行了一个Facebook应用程序 - 非常简单 .

但是,我想仅使用facebook作为授权机制,我无法从示例和文档中找出如何做到这一点(实际上除了几个示例之外我无法找到任何文档) .

我发现这段代码没有上下文:Link

protected void Page_Load(object sender, EventArgs e)
{
    if (!authorizer.IsAuthorized())
    {
        var authurl = authorizer.GetLoginUrl(new HttpRequestWrapper(Request));
        CanvasRedirect(authurl.ToString());
    }
    else
    {
        LoggedIn(); // function to call when the user is logged in to init the page
    }
}

这看起来很有趣,但我无法弄清楚授权器的设置和使用方式 .

我使用的是MVC 3,但这并不重要 .

有没有可能使用facebook c#sdk这个 - 以及如何?

3 回答

相关问题