Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-auth-facebook

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-auth-facebook

Simple Facebook Authentication for Hapi.js Apps

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by700%
Maintainers
4
Weekly downloads
 
Created
Source

hapi-auth-facebook so you can: img

Build Status codecov Code Climate dependencies Status devDependencies Status

:+1: Easy Facebook Authentication for Hapi Apps

Facebook Hapi plugin with detailed documentation.

Why?

Facebook authentication is used everywhere! We wanted to create a reusable Hapi Plugin with readable code.

What?

A simple and easy Hapi plugin that gives you Facebook OAuth Authentication in a few steps.

If you're new to Hapi, check out: https://github.com/dwyl/learn-hapi

How?

Tutorial

A guide for how we built an app to login with facebook with no prior knowledge.

Step 1: Upgrade your personal Facebook account to a developer account

Go to developers.facebook.com/apps

upgrade-account

...after logging in to your facebook account, you can 'Register Now' for a developer account.

Step 2: Select what platform your app is on

makeapp

Step 3: Skip to create an App

On this page, you can click the button in the top right to quickly access your app's id.

skip

Step 4: Create App

Here you can specify your app's name (doesn't have to be unique!)

nameapp

Note: Copy the App ID and the Secret into your .env file.

Step 5: Specify Redirect URI

Inside the facebook app's advanced settings, specify the redirect URI near the bottom of the page:

redirecturi

Note: the redirect URI has to be an absolute URI - make sure you include the http:// prefix.

Step 6: Make a request in your Hapi server

In your hapi server, make a request to the following url specifying your individual app-id and redirect-uri

facebookRequest

Keywords

FAQs

Package last updated on 13 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc