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 My Apps then click Register as a Developer, accept the policy and follow the registration steps.
Click My Apps > Add a New App > Advanced setup.
Type a unique Display name for your app, choose Apps for Pages under Category, then click Create App ID and complete the security exercise.
This creates a new Facebook app ID.
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:
Click Status & Review > Yes to enable general public access to your app.
The Facebook account you used to register the new app is an administrator of the app and has access to the app as administrator. This step grants the general public access so that the app can authenticate by using other Facebook accounts.
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.