title: Trying to connect using FacebookAuthProvider from Firebase but get error. react native
body: <p>I'm trying to connect new users through Facebook authentication and Firebase SDK with createContext, but I'm getting: <code>new FacebookAuthProvider()</code> is not supported on the native Firebase SDKs.</p>
  <p>I'm using the firebase doc here : <a href="https://firebase.google.com/docs/auth/web/facebook-login" rel="nofollow noreferrer">https://firebase.google.com/docs/auth/web/facebook-login</a>
  and here : <a href="https://github.com/firebase/snippets-web/blob/1452a031ee1b7904a361b23391af8533237eab82/auth/facebook.js#L9-L9" rel="nofollow noreferrer">https://github.com/firebase/snippets-web/blob/1452a031ee1b7904a361b23391af8533237eab82/auth/facebook.js#L9-L9</a></p>
  <p>My code :</p>
  <pre><code>import React, {createContext, useState} from 'react';
  
  import auth from '@react-native-firebase/auth';
  import firebase from '@react-native-firebase/app';
  
  export const AuthContext = createContext({});
  
  export const AuthProvider = ({children}) =&gt; {
    const [user, setUser] = useState(null);
  
    return (
      &lt;AuthContext.Provider
        value={{
          user,
          setUser,
          login: async (email, password) =&gt; {
            try {
              await auth().signInWithEmailAndPassword(email, password);
            } catch (e) {
              return handleError(e);
            }
          },
          register: async (email, password) =&gt; {
            try {
              await auth().createUserWithEmailAndPassword(email, password);
            } catch (e) {
              return handleError(e);
            }
          },
          logout: async () =&gt; {
            try {
              await auth().signOut();
            } catch (e) {
              return handleError(e);
            }
          },
          loginWithFacebook: async (processRequest) =&gt; {
            try {
              let provider = new firebase.auth.FacebookAuthProvider();
              provider.addScope('user_birthday');
              provider.setCustomParameters({
                display: 'popup',
              });
              await firebase.auth().signInWithPopup(provider);
            } catch (e) {
              console.log(e);
            }
          },
        }}&gt;
        {children}
      &lt;/AuthContext.Provider&gt;
    );
  };
  
  </code></pre>
  <p>If someone have another idea for using facebook connection with firebase SDK and useContext I'm okay too.</p>