Facebook login with firebase in react native app - firebase

I want to add Facebook login in the react native app(Android/IOS). I have created IOS and Android apps on Facebook developer account both apps have different App ID and different App secret. And on Firebase console I have enabled 'Facebook sign-in method' which takes only one App ID and one App secret. So which App ID and App secret should I put in the firebase console. Thanks in advance!!

I Found out the answer. Instead of creating 2 different apps i.e IOS and Android version on the Facebook developer account create one app and then click 'add platform' option on Facebook developer account.

Related

Deployed webapp on firebase but not authenticating when opened in linkedin

I have deployed a react web app on firebase, with google authentication and it works but when I try to open it inside Linkedin it says can't be authorized when used in this app.
Any solution?!
Login page!
Description

Flutter & Firebase Dynamic Links

I would like to use Firebase Dynamic Links to open the email verification message in the app by tapping the link sent by email.
In the Dynamic Link created, the package name of the app is given so that the app can start when the link is tapped.
My question is : do I need my app to be in the PlayStore so that the app can be recognized and opened, or can I test the dynamic link app opening even if my app hasn't been published.
You can test dynamic links without having the app published in the stores. It just has to be installed on the device of course.

Can I use Firebase Dynamic Links for a web app?

I don't see any option for Web under "receiving dynamic links" in Firebase Dynamic links page.
Without the SDK, there's no way to connect a post-install user with a pre-install click.
I have a desktop app that runs on node.js like a web app, using nw.js. What I'm trying to do is create referral links for users. After someone clicks a referral link, I need to be able to track his referrer. But the problem is that link is only going to take him to the download page, after he downloads and opens up the app for the first time, how can I reach his referrer info? The desktop app has no connection with the website that users download from.
I understand that this can be done with Dynamic Links SDK but can I use that SDK in a web app?(desktop app actually but runs with HTML/node.js)
The post-install deeplinking in Dynamic Links is just for Android and iOS - so there isn't an equivalent for a desktop app.

What will be the Firebase Authorized Domain for Firefox Packaged App?

My packaged app for Firefox OS uses Firebase and Firebase Facebook Login for user authentication. However, in Firebase I need to provide a Authorized domain for oauth redirect. What will be my Authorized domain for a Firefox OS packaged app?
I ran this app in the FF OS simulator through FF WebIDE and from there I got an app id which I used as a Aauthorized domain in Firebase and it (fb login) worked. But then I submitted my packaged app in the Firefox marketplace and got rejected as Facebook Login is not working.
What am I missing here?
I would guess it works via the simulator because you are on localhost, which is whitelisted in your account dashboard. Naturally, you aren't going to be able to create a whitelisted domain that works within the packaged app.
Instead, to make integrated auth work, you'd need to set up a hosted login page and feature that in your app, then you can whitelist the hosted page instead. For example, if you hosted your login form at yourinstance.firebaseapp.com:
Whitelist yourinstance.firebaseapp.com
App redirects to or "iframes" https://yourinstance.firebaseapp.com/login.html
When login is completed, login.html returns the userData.token to packaged app
Packaged app calls authWithCustomToken(token)
Alternately, and possibly a much simpler and more elegant solution, you could sign your own tokens and utilize those in the packaged app.

Firebase does not Remember Auth on iOS added to HomeScreen

Firebase does remember and auto-login when I visit the site on mobile safari. However, when I add the app to iOS home screen, it does not seem to auto login anymore.
Home screen apps may clear cookies each time on load.
Is there anyway to get it to auto login as a homescreen app?
Thanks!!
[Engineer at Firebase] Note that Firebase Simple Login is a separate service built on top of Firebase Authentication, intended to simplify authenticating users and generating Firebase Auth. Tokens for use in Security Rules.
Update 2014/03/07: Support for redirect-based OAuth has been added to the Firebase Simple Login Web Client as of v1.3.0, available from the Firebase CDN or via Bower using bower install firebase-simple-login. This update enables the Simple Login client to automatically detect iOS "standalone" applications and handle the redirect-based OAuth automatically.
There is an existing bug at https://github.com/firebase/firebase-simple-login/issues/7 to add support for a redirect-based authentication flow, which is required to support iOS standalone-webview apps.

Resources