Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Facebook's Account Kit On Laravel

Facebook's Account Kit On Laravel

Implementation of Facebook's Account Kit on Laravel

andela-sakande

September 17, 2016
Tweet

More Decks by andela-sakande

Other Decks in Programming

Transcript

  1. Overview Account Kit helps people quickly and easily register and

    log into your app using their phone number or email address as a passwordless credential. Account Kit is powered by Facebook's email and SMS sending infrastructure for reliable scalable performance with global reach. Using email and phone number authentication doesn't require a Facebook account, and is the ideal alternative to a social login.
  2. Benefits of Account Kit • Account Kit combines Registration and

    Login so no separate flows. • It provides long-lived sessions. • It entertains both emails and phone numbers enabling you to have more users on your application. • No password to remember. • Server-to-server validation. • Supports SMS-based authentication for hundreds of country codes(230 as at now). • It is free till your app exceeds 100,000 sms messages per month. • Supports localization of the interface, SMS messages, and authentication emails into dozens of languages(40 as at now). • Account Kit is supported for iOS, Android, and web.
  3. Using the Account Kit in Steps(Web) 1. Create a Developer

    Account 2. Get a Facebook App ID 3. Import the Account Kit Javascript SDK by adding this line in your <head> tag: 4. Set up UI input elements in the <body> tag:
  4. Using the Account kit in steps 5. Initialize Account Kit,

    and setup JS handlers for login callback and form submission.
  5. For Laravel It’s just the same way, Just implement it

    leveraging the MVC structure of laravel. Also, you should use guzzle to make your HTTP requests. We will discuss more on this on the Group session