MVC2 application returns "Invalid parameter" error

Sep 7, 2010 at 2:50 AM

HI,

I got the most recent FDT (infact 3.1 beta)

I have a created sample MVC project.

 

public ActionResult Index()
{
 try
 {
     var api = this.GetApi();
     ViewData["userId"] = api.Session.UserId;
     return View();
 }
 catch (FacebookException fex)
 {
     throw;
 }
}

I get "Invalid Parameter" error right in GetApi() method.I have the traditional web project working but not the MVC project. I didn't find an MVC sample in the toolkit either.

Anyone has any clue or got a sample MVC2 application working?

Developer
Sep 8, 2010 at 6:35 AM

You will need to get latest as the source code that fixed many issues with new permissions is not in a release and only in source control. 

As an alternative you can check out a new sdk that i have been working on that is more dynamic in nature at http://facebooksdk.codeplex.com/

 

Sep 8, 2010 at 10:27 PM

ok..I will checkout, I wonder how I missed that..I tried a bunch of Facebook SDKs on the net before settling on this toolkit..I will try yours.