Visual Studio 2012 recent update released (VS2012.2) contains an enhancement to ASP.NET MVC that introduced new Facebook Application template. This tutorial will teach you to build a Facebook canvas application using Facebook Applications Template in Visual Studio 2012
Facebook Canvas applications using ASP.NET MVC Facebook Application template
Facebook Application template includes necessary library to build Facebook canvas application. Facebook Application template will ease of writing code for authentication, permissions, and accessing Facebook data. The Facebook Application template also has an extensibility model to build your own storage providers.
Prerequisites to create a Facebook Canvas Application in ASP.NET MVC- Visual Studio 2012 or Visual Studio Express 2012
- ASP.NET and Web Tools 2012.2 update for Visual Studio 2012
- Run Visual Studio 2012 or Visual Studio Express for Web 2012.
- From the File menu, click New Project.
- In the New Project dialog box, expand C# and then click Web under Templates.
- Click ASP.NET MVC 4 Web Application.
- Leave the .NET Framework version set to .NET 4.5 for developing Facebook template requires.
- Enter HelloWorldFacebookApp for the project name, and then click OK.(Figure 1)
- In the New ASP.NET MVC 4 Project dialog box, click Facebook Application, and then click OK.(Figure 2)
Figure 2