Book Image

ServiceStack 4 Cookbook

Book Image

ServiceStack 4 Cookbook

Overview of this book

Table of Contents (18 chapters)
ServiceStack 4 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with Facebook authentication


Similar to Twitter and Google, Facebook offers OAuth integration for developers to allow users to log in to external applications using their Facebook account. The ServiceStack framework provides a prebuilt OAuth provider to make this integration process with your application as smooth as possible.

Getting ready

First, we are going to need an application to integrate. We will start with a template from the ServiceStackVS Visual Studio extension. If you are using Visual Studio Express, please see the Creating your ServiceStack solution with Visual Studio and NuGet section in Appendix A, Getting Started, and continue from the second instruction in the How to do it… section.

We will also have to register an application with Facebook. This will require a verified account with Facebook before we can create this application.

At the time of writing, to create an application, we need to take the following steps: