Register your apps for Facebook authentication with Mobile Services
This topic shows you how to register your apps to be able to use Facebook to authenticate with Azure Mobile Services.
This tutorial is about Azure Mobile Services, a solution to help you build scalable mobile applications for any platform. Mobile Services makes it easy to sync data, authenticate users, and send push notifications. 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 Apps then click Register as a Developer, accept the policy and follow the registration steps.
Click Apps, then click Create a New App.
Choose a unique name for your app, select Apps for Pages, click Create App and complete the challenge question.
This registers the app with Facebook
Click Settings, type the domain of your mobile service in App Domains. Also enter a Contact Email, then 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.
The app secret is an important security credential. Do not share this secret with anyone or distribute it with your app.
Click the Advanced tab, type the URL of your mobile service appended with the path /login/facebook in Valid OAuth redirect URIs, then click Save Changes.
For a .NET backend mobile service published to Azure by using Visual Studio, the redirect URL is the URL of your mobile service appended with the path signin-facebook your mobile service as a .NET service, such as
The Facebook account, for which you defined the new app, is an administrator of the app and has access to the app as administrator. To authenticate other Facebook accounts, they need access to the app. This step grants the general public access so that the app can authenticate other Facebook accounts. Click Status & Review. Then click Yes to enable general public access.
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.