const signInWithFacebook = () => {
const provider = new FacebookAuthProvider();
signInWithPopup(authentication, provider)
.then((res) => {
console.log('result: ', res);
})
.catch((err) => console.log(err));
};```
and i use it on button onclick
Is this problem part of tauri or facebook?
#Firebase and facebook auth
1 messages · Page 1 of 1 (latest)
is the error code 500 for the facebook?
Facebook no longer supports OAuth in embedded webviews due to security concerns. https://developers.facebook.com/blog/post/2021/06/28/deprecating-support-fb-login-authentication-android-embedded-browsers/
Please use the OAuth plugin instead and open the OAuth page in the default browser.
how can i install it?
Install the plugin by adding the following to your Cargo.toml file:
src-tauri/Cargo.toml
[dependencies]
tauri-plugin-oauth = { git = "https://github.com/FabianLars/tauri-plugin-oauth", branch = "main" }