azure-appservice-samples / ContosoMoments

Contoso Moments is a sample to demonstrate the advantages of using Azure App Service for building Modern Applications
https://contosomoments.azurewebsites.net
MIT License
48 stars 92 forks source link

Use the Facebook JS SDK in web app to improve login flow #61

Open lindydonna opened 8 years ago

lindydonna commented 8 years ago

The Facebook app shows this message when you first authorize: You are using a display type of 'page' in a small browser window or popup. For a better user experience, show this dialog with our JavaScript SDK without specifying an explicit display type. The SDK will choose the best display type for each environment. Alternatively, use display type 'popup' if you have special requirements precluding you from using the SDK. This message is only visible to developers of your application.

image

ExperimentsAndIdeas commented 7 years ago

Would love to have a sample that shows how to use the native FB SDK, instead of the JS SDK.

Reason is that it prevents credential prompting in iOS. (FB app, vs FB in settings, vs FB in browser/Safari)

lindydonna commented 7 years ago

The mobile app uses the native Facebook SDK, but you have to set up your login flow on the server. See https://github.com/azure-appservice-samples/ContosoMoments#authentication