Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Auth.js
FB-f-Logo__white_512.png
FacebookLogin.unoproj
MainView.js
MainView.ux
README.md
facebookapp1.png
facebookapp2.png
facebookapp3.png
facebookapp4.png
facebookapp5.png

README.md

Facebook login

This sample shows how one can login to Facebook using JavaScript and a WebView.

Setup app

Before this sample will work, you need to setup an app in the Facebook Developer Portal. You can follow these instructions.

  1. Go to https://developers.facebook.com/apps/ and click the "Create a New App" button.

Create an app

  1. Choose a display name and click "Create App ID"

Create app id

  1. Copy the App ID to the Auth.js file

Copy id

  1. Go to the "Add Product" screen. You should automatically be there if you just created your app. If not, you can find it in the left sidebar. From here, click the "Set up" button for the Facebook Login product.

Add product

  1. Instead of following through the quickstart, go to settings from the side menu, and make sure "Client OAuth Login" and "Embedded Browser OAuth Login" is enabled.

Settings