Firebase authWithOAuthPopup for Facebook login gives warning

Using this in my code:

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

At the bottom of the dialog that appears, the following warning appears for an application that previously did not receive permission to run:

You are using the "popup" display type in a large browser window or tab. For a better user experience, show this dialog box with our JavaScript SDK without specifying an explicit display type. The SDK will choose the best display type for each environment. On the other hand, set the height and width in window.open () to properly adjust the size if you have special requirements that exclude the use of the SDK. This message is only available to developers of your application.

I assume this is a bug in Firebase. I am wrong?

+4
source share
1 answer

[Engineer at Firebase] This works as intended. The Firebase API manually adjusts the display options for the Facebook popup to best suit the platform and environment used. This warning appears to application developers, prompting you to use the JavaScript JavaScript SDK, rather than the general OAuth stream.

Note. This warning from Facebook is only displayed to developers listed in the Facebook app and your end users will not be able to see it.

+8
source

All Articles