Skip to content

dwyl/elixir-auth-facebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elixir-auth-facebook Comming Soon! See: #21

img

Easily add Facebook login to your Elixir / Phoenix Apps with step-by-step detailed documentation.

GitHub Workflow Status codecov.io Hex.pm Libraries.io dependency status docs contributions welcome HitCount

Why?

Facebook authentication is used everywhere! We wanted to create a reusable Elixir package with beginner-friednly instructions and readable code.

What?

A simple and easy-to-use Elixir package that gives you Facebook OAuth Authentication in a few steps.

If you're new to Elixir, please see: dwyl/learn-elixir

How?


⚠️ WARNING: This is out-of-date see: #21


These instructions will guide you through setup in 6 simple steps by the end you will have login with Facebook working in your App. No prior experience/knowledge is expected/required.

Note: if you get stuck, please let us know by opening an issue!

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 Elixir / Phoenix server

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

facebookRequest

About

👥 Easy Facebook Authentication for Elixir Apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages