firebase / firebase/firebase-js-sdk

Facebook integration with Firebase Auth

Open
#9,196 11 comments 1 reaction 0 assignees View on GitHub
api: auth needs-attention question
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### Operating System

IOS, Android

### Environment (if applicable)

Capacitor 7, firebase: 11.0.0 and higher, @capacitor-firebase/authentication: 7.2.0 and higher

### Firebase SDK Version

firebase: 11.0.0 and higher

### Firebase SDK Product(s)

Auth

### Project Tooling

Capasitor app

### Detailed Problem Description

Seems after Facebook migrate to Facebook login for Business they change the rule to authorise to soc accounts. In my olde project version I am using next technologies:
- Capacitor 6
- Firebase 10.13.0
- @capacitor-firebase/authentication 6.1.0 (which allows me to login to Facebook accounts)
Everything works fine and login method redirects me into Facebook app (on my device), let me login and return back info that I requested.
After Android introduced their updates related to API 35, it requires Capacitor 7. In this case I have to update my project with next technologies:
- Capacitor 7
- Firebase 11.0.0 (at least)
- @capacitor-firebase/authentication 7.2.0
With all of this updates Facebook login does not work and I see a message that "This app is not available"

![Image](https://github.com/user-attachments/assets/4c422a17-37c0-4f67-861d-96464d05e9b2)

I added all required Facebook permissions but seems nothing help.
In on of articles I saw that for web implementation should be used "config_id" key with value. And here is the question - does Firebase support this key, and can I send it to Facebook to login in my app?

### Steps and code to reproduce issue

Demo with deferent environments:
With Capacitor 6, @capacitor-firebase/authentication: 6.1.0, firebase: 10.13.0
https://github.com/VashAlex/Capacitor6-login-to-facebook

With Capacitor 7, @capacitor-firebase/authentication: 7.2.0, firebase: 11.0.0
https://github.com/VashAlex/Capacitor7-login-to-facebook

Steps to run projects:
1) run "npm i" in each project
2) fill in information about Facebook App and Firebase app
3) add GoogleService-Info.plist file into IOS directory
4) run rpojects on ios simulator or real devices

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.