Signup with Facebook

Create a Facebook application

a) Log in to the Facebook Developer Center and click on My Apps in the navigation bar and click the button Create a New App . Then select "Website" as platform.

b) Insert your App Name and click Create New Facebook App ID. Follow the wizard and choose a Display Name, Contact Email and Category for your application and click Create App ID.

c) Open Settings, click Add Platform and choose Website

d) Insert your Selfbits Project Backend domain and press enter

Site URL: https://yourapp-api.selfbits.io

e) In the settings view you can access your Facebook Application ID and App Secret, which you'll need for the next step.

Configure Facebook authentication on Selfbits

a) Go to your Selfbits BaaS dashboard and select your project. Then go to Authentication > Social

b) Add Facebook as an Authentication provider and press the gear symbol to enter the Settings

c) Enter the Facebook App Id and App Secret of your Facebook App. Do not change the Redirect URI if you don't know what you are doing.

Info: Sign in with Facebook can now be used from within your project via the SDK. Please note that sign in initially only works for registered Facebook developers. If you publish your application and want any user to be able to sign into your app with Facebook you need to send your Facebook App through App Review. You can do so on the Facebook Developer Dashboard. Please read the corresponding Facebook documentation*

Connection Test - Preparation

  • skip this and go to 'Connection Test' if this is your first connection test of an auth provider at Selfbits

Attention: If you want to test registration with different OAuth Providers , please remember that our database uses the email-address of your OAuth Provider as primary key. That means you can register only with OAuth Providers with different account email addresses. But its possible to map them later in the app. If you want to test registration with different OAuth providers with the same email here in the live demo, you have to delete the user with this email address

a) Go to your Selfbits BaaS dashboard and select your project. Then go to Authentication > User .

b) Delete the user with the same email-address as your Facebook-Account.

Connection Test

a) Go to your Selfbits BaaS dashboard and select your project. Then go to Templates

b) Click in the Livedemo on the Facebook Logo. If you will be redirected to the Dashboard of the Livedemo the connection was successfully.

c) Go to your Selfbits BaaS dashboard and select your project. And go to Authentication > User. You should now find there your facebook user you registered to selfbits.