Skip to content

Social Settings

Backendless provides support for logging in users with Facebook or Twitter credentials. Once logged in, Backendless creates a registered user in its internal user storage and links the Backendless user account with his external social account (see the "socialAccount" column in the Users table on the Data screen). To enable social login, a Backendless backend must be configured with API keys.

Login with Twitter Setup

This configuration is available on the Manage > App Settings screen of the Backendless Console: social-settings-twitter.zoom50

To obtain your Twitter Consumer key and secret:

  1. In a browser, navigate to https://developer.twitter.com/en/apps and sign in with your Twitter account.
  2. Click "Create New App":
    create-new-twitter-app.zoom70
  3. Enter application name and description.
  4. For the Website field use the following value:

    https://api.backendless.com
    

  5. For the Callback URLs field use the values shown below, where YOUR-APP-ID and REST-API-KEY are the values assigned to your Backendless app.

    https://api.backendless.com/YOUR-APP-ID/REST-API-KEY/users/social/oauth/twitter/request_url
    https://api.backendless.com/YOUR-APP-ID/REST-API-KEY/users/social/twitter/authorize
    

Login with Facebook Setup

This configuration is available on the Manage > App Settings screen of the Backendless Console: social-settings-facebook.zoom50

To obtain your Facebook App ID/API Key and App Secret:

  1. Open https://developers.facebook.com/
  2. Select an application or create one using the "My Apps" dropdown in the upper right corner.
  3. Make sure the application is public and available to all users as indicated by the green dot next to the application name:
    live-fb-app.zoom50
  4. Locate the App ID and App Secret in the Settings section and copy the values into the corresponding fields in the Backendless Console (Manage > App Settings > Social Settings).
  5. IMPORTANT: For the Backendless' "Easy Facebook Login" option make sure to make the following changes:
  6. Click Settings on your Facebook application page.
  7. Enter api.backendless.com into the App Domains field.
  8. Make sure the Contact Email field contains a valid email address.
  9. If the Website platform is not added, click + Add Platform and select Website.
  10. Enter https://api.backendless.com as the Site URL.
    After you make the changes described above, the Settings section should look as shown below:
    basic-fb-settings.zoom50
  11. Click Save Changes.
  12. Click the Advanced tab on the Settings section.
  13. Scroll down to the Client OAth Settings block and enter https://api.backendless.com into the Valid OAth redirect URIs field
    oath-settings.zoom80
  14. Scroll to the bottom of the page and click Save Changes.