Facebook Authorization with Node
4.0 (6 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
80 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Facebook Authorization with Node to your Wishlist.

Add to Wishlist

Facebook Authorization with Node

Save Countless Development Hours and Improve Security by Leveraging Facebook Authorization in Your Node Application
4.0 (6 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
80 students enrolled
Created by Daniel Stern
Last updated 8/2016
Current price: $12 Original price: $90 Discount: 87% off
4 days left at this price!
30-Day Money-Back Guarantee
  • 1 hour on-demand video
  • 2 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion

Training 5 or more people?

Get your team access to Udemy's top 2,000 courses anytime, anywhere.

Try Udemy for Business
What Will I Learn?
  • Understand OAuth and Facebook Authorization
  • Create an app with Facebook
  • Understand and configure App domains
  • Manually verify Facebook tokens
  • Understand Facebook Token Fraud
  • Use Request to validate Facebook tokens
  • Understand the alternatives to Facebook Authorization
  • Distinguish between public and private user information
  • Initialize a node package
  • Write an express server
  • Create a website with a real working Login button
  • Add a Like button to your page
  • Modify your hosts file (so you can test locally)
  • Tons more
View Curriculum
  • No previous knowledge is required
  • Users should have a personal computer in order to complete the exercises

The Code Whisperer is excited to offer you the time and money saving secrets of Facebook Authorization with Node.

Have you ever implemented the sign up and authentication process? If so, you'd know how difficult and expensive it is. Luckily, we can now leverage Facebook to greatly simplify this and save money and time AGAIN and AGAIN, while getting better security and more signups than ever before.

Curious to learn more? You should be! In this course, we'll...

  • Learn all the basics of Facebook Authorization from the very beginning, so you'll never be clueless
  • Understand OAuth
  • Register a real app with Facebook
  • Make the necessary modifications to your workstation to test Facebook Authorization
  • Actually build your own application that implements Facebook Authorization that you can use as the boilerplate for any project you wish
  • Understand the risks of using this mostly great technology

Anyone who has LOTS of responsibility in the office, or anyone who likes to take on huge projects with just a small team, WILL benefit from this course. It's guaranteed! If you don't think you got your money's worth, don't hesitate to click the Refund Now button! I'm so convinced, I believe you'll receive no less than two times what you put into this course in saved time and money the VERY first time you use what you learn, and you'll be doing so dozens of times.

Get in on this timeless knowledge and start saving time and developing like a pro today.

Who is the target audience?
  • Anyone who has never implemented Facebook Authorization
  • People who are interested in NodeJS
  • Those who feel they spend too much time implementing Login / Signup systems
  • Those who want to create additional employment opportunities for themselves
Compare to Other Node.Js Courses
Curriculum For This Course
Introduction to Facebook Authorization with Node
3 Lectures 05:20

In this lesson, we introduce this course and explain what it's all about. See the attached resources for a PDF download of the slides for this course.

  • Outsource your whole login process to Facebook!
  • Benefits and potential dangers revealed within!
Preview 01:58

In this lesson, we review who this course benefits.

  • Front-or-back end Developers working with Node
  • Entrepreneurial developers
Preview 01:35

We review things we need to know before beginning this course.

  • Install NodeJS on your computer
  • Have a Facebook account in good standing
  • Code along at home
Preview 01:47

How much do you already know about Facebook Authorization?

Since we haven't covered these materials yet, it's OK if you get these questions wrong! Just do your best.

Authorization Examination
4 questions
All About Facebook Authorization
5 Lectures 09:43

In this course, we ask the tough questions. Like, what IS Facebook Authorization?

  • You have probably logged in to an application with Facebook before!
  • Based on Process called OAuth
  • Process where login / registry process is handled by Facebook
Preview 01:45

We briefly discuss OAuth, the basis of Facebook Authorization.

  • “OAuth is an open standard for authorization
  • Currently on OAuth 2.0
  • Summary: lets you log in to sites with Facebook, Google, etc.
Learnin' 'Bout OAuth

We rap about the numerous advantages of working with this Facebook authentication.

  • User never enters a password on your site
  • Often, user only needs to log in to Facebook once no matter how many apps are authorized
  • Liability of storing user’s personal data and password eliminated
Preview 02:42

Next, we take a look at the reasons you might not want to authenticate via Facebook.

  • Facebook may change their API at any time
  • Facebook can disable your app for no known reason
  • Third parties may know when users access your app
Disadvantages of Facebook Authorization

Don't want to authorize with Facebook? Well, you're missing out! But in the spirit of fairness, we take a look at some alternatives in this video.

Preview 01:33
Getting Set Up with Facebook
3 Lectures 04:56

We learn and demo the process of getting set up with an app on Facebook, a prerequisite of Facebook authorization.

  • Creating a Facebook app is easily done via the developer’s page on Facebook
  • After app is made, an app ID will be provided for us
Creating a Facebook Application

We learn to distinguish between public and private information, as it relates to Facebook.

Preview 01:00

We learn and demo the adding of app domains, which allows us to integrate with Facebook's many security features.

  • App domains tell Facebook which websites are allowed to identify themselves as your app
  • Apps not served from the correct domain will not be validated by Facebook
Getting Your App ID
Setting Up the Node App
4 Lectures 15:11

In this video we will begin constructing the Node project. Please see the resources for a download of the full project. (You can also copy along by watching the video.) If you download the complete project, remember to run NPM install and also replace the App ID with your own.

  • package.json and .gitignore file will be created via CLI arguments
  • Express will be installed to serve any pages we want
  • The Request library is used to validate user-supplied data with Facebook
Preview 03:04

We demo the creation of the server file, necessary for any Node application to serve up web pages.

  • The “server” file will create a server whenever the file is run by Node
  • Server will continue to “listen” on specified port until process ends
Writing the Server File

We finally implement a login button, getting us one step closer to true Facebook authorization.

  • Login button code is provided by Facebook and needs to be included mostly as-is in order to work
  • Replace dummy App key with own
Implementing the Login Button

We modify our hosts file, allowing us to test our Facebook authorization locally. This is a windows demo. If  you are working from a Mac, please follow the instructions in the resources section or use a tool called GasMask.

  • Facebook will not authenticate from localhost domain
  • Hosts file allows the localhost domain to be accessed by different URLs in the browser
Modifying your Hosts File & Logging In
Preventing Facebook Authorization Fraud
4 Lectures 12:37

We learn about token Auth fraud, and how unsuspecting developers can fall victim to it.

  • Lax security allows a user to masquerade as any other user
Understanding Facebook Authentication Fraud

In this video we explain the process of validating tokens with Facebook, and then demonstrate how to do manually using Google Chrome.

  • All user-provided credentials must be validated with the Graph API
How To Confirm Access Tokens with Facebook

In this video, we implement the first part of the Auth Service, a tool we will use to let Node automatically handle the validation we had to do manually before.

  • Request library will be used to query Facebook API each time a request is made
Implementing Facebook Token Validation

In this grand finale, we complete and test our Authorization Service, put ourselves in the shoes of the user and prove the validation works.

Facebook Token Validation, Part II: Validation Day
Conclusion to Facebook Authorization with Node
3 Lectures 03:06

We quickly review what we've learned in this course.

  • How to create a Facebook app
  • How to test Facebook authentication locally
  • How to prevent Facebook auth fraud
What We Learned

We discuss various tools you can use to continue learning. See resources for links to these sites.

  • NodeConf
  • Facebook Developer Documentation
  • Oauth Wikipedia Page / Spec
Continue Your Education

A quick video to say, thanks for watching!


Test your knowledge with this test that covers elements from the whole course.

Facebook Frustration (Authorization Edition)
7 questions
About the Instructor
Daniel Stern
4.2 Average rating
3,899 Reviews
41,953 Students
10 Courses
The Code Whisperer

Known in development circles as “the Code Whisperer," Daniel Stern has been believed to possess a supernatural connection to computers ever since he talked the supercomputer Deep Blue off the roof of a twelve-story St. Petersburg apartment building, following its shameful loss to Gary Kasparov.

He can often be found singing softly to his tablet, or gently caressing his aluminum keyboard in his arms.

Daniel has been working as a front end and full stack developer in the tech industry since 2011. He's developed single-page applications for banks like CIBC, charities like the Ontario Institute for Cancer Research, and at ad agencies like McLaren McCann, TraffikGroup and Olson. Throughout his labors, he's worked on computer programming in his spare time because, well, he's obsessed with it.

In addition to being featured in both CSS Weekly and JavaScript weekly, Daniel is well-known throughout the open-source community for maintaining several open-source tools, most notably the Angular.js and LESS-based tool, Range .css and the Angular .js audio tool, ngAudio.

In addition to being trusted by the open source community to develop top-quality, functional code, Daniel has also been invited to speak at numerous conferences including Full Stack Conference 2014 in London, England.

Daniel is an active learner and very passionate about the following technologies,

- Node.js
- Angular.js
- TypeScript
- MongoDB
- Brackets, the Open Source Code Editor
- Esprima
- Grunt
- Yeoman
- Many, many, many more