gpt4 book ai didi

c# - FaceBook C# SDK 6.4版本中CanvasAuthorizeAttribute的替代品是什么

转载 作者:太空狗 更新时间:2023-10-29 23:23:17 26 4
gpt4 key购买 nike

在 MVC3 中,我们可以使用 CanvasAuthorize 属性(在旧的 FaceBook 版本中) 属性,如 LoginDisplayMode 、 ReturnUrlPath 、CancelUrlPath。

我们如何在最新版本 6.4 中使用它们?

[CanvasAuthorize(Permissions = "", LoginDisplayMode = "popup", 
ReturnUrlPath = "Some Url", CancelUrlPath = "Some Url")]
public ActionResult Index()
{
return View();
}

我们在 MVC4 中有 [FacebookAuthorize("Permissions")]。但是,我们如何使用其他属性,例如 LoginDisplayMode、ReturnUrlPath、CancelUrlPath。如上所述?

enter image description here

I have gone through this article at GitHub. But no help so far

I have read this article suggested by Prabir. But no help so far

最佳答案

在最新版本的 FacebookAuthorize 属性 中没有提供旧 Dll 的CanvasAuthorize 属性命名参数 .

Please check this link for more details

Here is the another link

现在我们提供了一个重载构造函数。

enter image description here

关于c# - FaceBook C# SDK 6.4版本中CanvasAuthorizeAttribute的替代品是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18764000/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com