Integrating eFront and Facebook, so you can have your users log in through their Facebook accounts in eFront is really handy and useful. You can achieve it easily with a series of simple steps. The process is pretty straightforward.
The first step is to log in to the Facebook developers page, using your Facebook username and password.
Next, you need to create a new app. Go to the top right corner of the page, click on the button 'My Apps' and then on the option 'Add a new app'.
A pop-up window will appear that will ask you what type of app and for which platform is this new app that you are going to create. Select the option 'Website'.
Once you have done this, you will be asked to give a name to your app. Give whatever name you'd like although naming it something like eFront App suggests itself.
After naming your app and clicking on 'Create New Facebook App Id' button, you will be asked to give a contact email and select a category for your app.
Provide Facebook with a contact email and choose a category to let Facebook know more details about your app and then click on 'Create App ID'. The next step will require that you provide the Site URL for your Facebook App. Give your eFront URL and click next.
That's it. You are almost done! Only a few more steps away from completing the integration. The next thing you need to do is to your Apps again and select your newly created app. You can go there either by clicking the 'Skip to Developer Dashboard' link or by viewing the app list from the top right corner of your screen
This will get you to the app's dashboard, where you can find the app's details about its 'App ID' and 'App Secret'. Copy this information and paste it to your eFront 'System Settings' -> 'Single Sign-on' (1) -> 'Facebook' (2) tab.
Next, select the option 'Enable Facebook Login' (3), fill in the required information (4) and finally click save.
That's it. You have done it! Now you can see Facebook login button (5) in your eFront login screen, which your users can use to login to eFront with their Facebook account.
Keep in mind that the first time your user try this option, they'll need to authorize your app for their account. A pop up will appear to them, asking them to do so.
Note: In order for your users to be able to use your Facebook app and log in to eFront with their Facebook account, their Facebook account MUST be verified. If your users do not authorize your Facebook App to use their email or if they have not have an email address registered with Facebook (in case of a Facebook signup through phone number) their registration with eFront will take place with an email similar to <identifier>@undisclosed-facebook.none.