Why the use of GlobalFacebookConfiguration in Microsoft.AspNet.Mvc.Facebook?

Topics: ASP.NET MVC
Oct 13, 2013 at 9:10 AM
Hi,

I've been trying to use the Facebook Application Template for MVC, and was wondering why the facebook app configuration is stored and read in a global static variable in GlobalFacebookConfiguration ?

It makes it impossible to extend on the library, and only limits this Template to be for a single use/single directory application. Some of us write multi-reuse fb apps which runs in one application directory, but makes runtime use of multiple sets of apikey/secret stored in a database.