This sample application will show you how to log into App Services (Usergrid) using Facebook and the Usergrid Javascript SDK.
Enter the
API Key that you get from Facebook, then log in.
The Log in button sends the user to the facebook login page. Once the user logs in, they are redirected back to
this page and automatically logged into Usergrid. If the user is already logged into facebook, then they don't need to log in again.
Clicking the log out button calls the logout method of the Facebook JS SDK, and also logs the user out of Usergrid by calling the Usergrid logoutAppUser method.
For a step by step walk-thru on how to get this app running, see this
guide.
For more information on App Services, see our
docs site, specifically or our
Facebook docs page.
For more information on how using the Facebook JS SDK to log users in, see this guide:
http://developers.facebook.com/docs/howtos/login/getting-started/
// Press 'Log in' to log in with Facebook.