CHAPTER 12

image

Mobile, Social, and Cloud Technologies

12-1. Using Facebook As Your MVC Web Site’s Identity Provider

Problem

You are planning to create an Internet-facing web application that requires your customers to register and log in to perform certain functions. Since the vast majority of your customers have a Facebook account, you would like to be able to let them use that account to log in to your site. You would also like to allow customers who do not have a Facebook account to create a local account on your web site. You need your web site’s local login and the Facebook login to work seamlessly.

Solution

The ASP.NET MVC 4 Internet Application ...

Get ASP.NET MVC 4 Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.