Using Firebase and the FirebaseUI Android app , which is used to demonstrate authentication.
Facebook login does not work with error:
The specified URL is not allowed by the application configuration. One or more of the specified URLs is not allowed in the application settings. To use this URL, you must add a valid native platform in your application’s settings.
Following the instructions in the Firebase documentation , I have
- Added and enabled my Facebook app.
- copied the application identifier and application secret from Facebook to the Firebase console.
- copied the OAuth redirect URI from the Firebase console to the Facebook account in the OAuth Valid URI, for example https://my-test-1234.firebaseapp.com/__/auth/handler
- set the Facebook app ID in the values /config.xml file inside the Android demo application.
I also looked at similar, but old StackOverflow questions and looked for solutions to solve, so I also added it to my Facebook dashboard.
- application domain in the field "Application Domains"
- a platform like a Web site with a URL from the Firebase console is the same as an OAuth redirect URI, for example. https://my-test-1234.firebaseapp.com
, Firebase Facebook - , Facebook .
, Android, Facebook FirebaseUI Android - Auth Facebook Android. -, Android, Facebook.