Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase authWithOAuthPopup to log into Facebook gives warning

Using this in my code:

ref.authWithOAuthPopup("facebook", function(error, authData) { ... });

I get the following warning in the bottom of the dialog that appears, for an app that hasn't previously gotten permission to run:

You are using a display type of 'popup' in a large browser window or tab. 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, set height and width on your window.open() call to properly size this dialog if you have special requirements precluding you from using the SDK. This message is only visible to developers of your application.

I'm assuming that this is a bug in Firebase. Am I wrong?

like image 311
Damon Casale Avatar asked Oct 28 '14 05:10

Damon Casale


1 Answers

[Engineer at Firebase] This is working-as-intended. The Firebase API manually configures the display parameters of the Facebook popup to best match the platform and environment that you're using. This warning is shown to the developers of the application, encouraging you to use the Facebook JavaScript SDK rather than the generic OAuth flow.

Note: This warning from Facebook is only shown to the developers listed on the Facebook application, and your end users won't see it.

like image 199
Rob DiMarco Avatar answered Sep 30 '22 21:09

Rob DiMarco