Register your apps for Facebook authentication with Mobile Services
This is an Azure Mobile Services topic. This service has been superseded by Azure App Service Mobile Apps and is scheduled for removal from Azure. We recommend using Azure Mobile Apps for all new mobile backend deployments. Read this announcement to learn more about the pending deprecation of this service.
Learn about migrating your site to Azure App Service.
Get started with Azure Mobile Apps, see the Azure Mobile Apps documentation center.
This topic shows you how to register your apps to be able to use Facebook to authenticate with Azure Mobile Services. This page supports the Get Started with Authentication tutorial which shows how to log users into your app. If this is your first experience with Mobile Services, please complete the tutorial Get Started with Mobile Services.
To complete the procedure in this topic, you must have a Facebook account that has a verified email address and a mobile phone number. To create a new Facebook account, go to facebook.com.
Navigate to the Facebook Developers website and sign-in with your Facebook account credentials.
(Optional) If you have not already registered, click My Apps then click Register as a Developer, accept the policy and follow the registration steps.
Click My Apps > Add a New App > Website > Skip and Create App ID.
In Display Name, enter a unique name for your app, choose a Category for you app, then click Create App ID and complete the security check. This takes you to the developer dashboard for your new Facebook app.
On the App Secret field, click Show, provide your password if requested, then make a note of the values of App ID and App Secret. You will uses these later to configure your application in Azure.
In the left navigation bar, click Settings, type the domain of your mobile service in App Domains, enter an optional Contact Email, click Add Platform and select Website.
Type the URL of your mobile service in Site URL, then click Save Changes.
Click Show, provide your password if requested, then make a note of the values of App ID and App Secret.
Click the Advanced tab, type one of the following URL formats in Valid OAuth redirect URIs, then click Save Changes:
- .NET backend:
- .NET backend:
The Facebook account which was used to register the application is an administrator of the app. At this point, only administrators can sign into this application. To authenticate other Facebook accounts, click App Review and enable Make todolist-complete-nodejs public to enable general public access using Facebook authentication.
You are now ready to use a Facebook login for authentication in your app by providing the App ID and App Secret values to Mobile Services.