I am encountering a TypeError while attempting to implement Facebook Auth in my firebase react native project, specifically at the InitalizeAsync method.
import * as Facebook from 'expo-facebook';
export const loginWithFacebook = async () => {
await Facebook.initializeAsync('ID_OF_APP');
const {type, token}: any = await Facebook.logInWithReadPermissionsAsync({
permissions: ['public_profile', 'email'],
});
I have been troubleshooting this issue for the past day with no success so far.
Note that ID_OF_APP is mentioned here only for illustration purposes and is not my actual code.