O'Reilly logo

Web Application Development with MEAN by Robert Onodi, Adrian Mejia, Amos Q. Haviv

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Authenticating with Facebook, Google, and Twitter

Adding new social strategies is very similar to what we did with the local strategy. The main difference with the social strategies is that we need to register our app on each of the platforms, and of course, have an account on each one of them.

Facebook

We need to go to the Facebook Developers site (https://developers.facebook.com) to register the app. Go to My Apps | Settings | Basic, and get App ID and App Secret. We also need to the site URL to http://localhost:9000/.

Facebook

In case you need to set up the callback URL you can use http://localhost:9000/auth/facebook/callback.

Once you have the ID and secret, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required