In a nutshell: Facebook passes my MVC 3 application the following query string after a user selects friends with the fb:request-form control:
http://apps.facebook.com/my_app/?...&ids[]=100001694177427&ids[]=100001178061757
I assumed the default model binder would parse the ids[] array in the query string and bind it to my ids parameter in the action below:
public ActionResult Index(long[] ids)
{
//...
return View();
}
This previous question appeared to backup my thinking: In ASP.NET MVC 2, can I deserialize a querystring into an array using the default ModelBinder?
However, I still receive a null value. I've tried every parameter type I can think of, but to no avail. I can see from my controller's ValueProvider that it's definitely coming through (and being parsed as an array), so thought I would post here for ideas before working through the ModelBinder source!
Thanks in advance for any help.