Question

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

Was it helpful?

Solution

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

OTHER TIPS

Facebook.Web.Mvc has been removed in v6. Please use the Facebook application template that comes in ASP.NET tools.

http://www.asp.net/mvc/tutorials/mvc-4/aspnet-mvc-facebook-birthday-app

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top