Facebook authentication
How to set up Facebook authentication using OAuth 2.0.
Steps to Authenticate User
Step 1. Create a facebook application and register your application urls.
Create a Facebook Application for your website domain at https://developers.facebook.com/apps and press "Create New App".
Just fill in the dialogs and you will end up here:

Fill in the site urls.
Read more on facebook logon.
Step 2. Save your API Key and Secret Key
After registration, you will receive a unique API Key and a Secret Key. API Key helps us identify your application and lets you make API calls. For the safety of your application please do not share your Secret Key.
Step 3. Store API Key and secret key in your CrossmarX application blueprint in the Application Management screen.
Step 4. Call the login url
Use /engine?service=session&cmd=sociallogin&provider=facebook.
Step 5. Authorize user goups to login with facebook, using the property "Allow social login".
How does it work?
When a person uses the facebook login, and the email address of this user does not exist in a current account, a new account is created. When the email address does exist, the facebook account will be connected to the current account, after the user has responded to a confirmation email.
More options
If a user is alread logged in using a login name and password, it is still possible to connect the current account to facebook. You can facilitate this by providing the followig url:
/engine?service=session&cmd=connectaccount&provider=facebook.