Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the substitute of CanvasAuthorizeAttribute in FaceBook C# SDK 6.4 version

In MVC3, we could use the CanvasAuthorize Attribute(in old FaceBook version) properties like LoginDisplayMode , ReturnUrlPath ,CancelUrlPath.

How can we use them in Latest version 6.4?

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

We have [FacebookAuthorize("Permissions")] in the MVC4. But, how we could use other properties like LoginDisplayMode , ReturnUrlPath ,CancelUrlPath. as mentioned above ?

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

like image 516
Pankaj Avatar asked Oct 02 '22 23:10

Pankaj


1 Answers

There is no provision for the Named parameter of CanvasAuthorize Attribute of Older Dll present in the FacebookAuthorize Attribute of the latest version.

Please check this link for more details

Here is the another link

Right now we are provided one overload constructor.

enter image description here

like image 154
Imad Alazani Avatar answered Oct 10 '22 15:10

Imad Alazani