This sample shows how one can login to Facebook using JavaScript and a WebView.
Before this sample will work, you need to setup an app in the Facebook Developer Portal. You can follow these instructions.
- Go to developer.facebook.com/apps/ and click the "Create a New App" button.
- Choose a display name and click "Create App ID"
- Copy the App ID to the Auth.js file
- Go to the advanced settings menu
- Make sure you enable "Client OAuth Login" and "Embedded Browser OAuth Login"




