expo facebook login error

TypeError : undefined is not an object (evaluating ‘_expo.default.Facebook’)
please help

Hey @abhinavv,

It’s nearly impossible to help you without seeing code. Can you provide a code snippet containing all the relevant code that is throwing this error?



1 Like

@adamjnav thanks for replying !
I am getting the error in official snippet at google expo documentation which is …thia code below .
async function signInWithGoogleAsync() {
try {
const result = await Expo.Google.logInAsync({
androidClientId: YOUR_CLIENT_ID_HERE,
scopes: [‘profile’, ‘email’],

    if (result.type === 'success') {
      return result.accessToken;
    } else {
      return {cancelled: true};
  } catch(e) {
    return {error: true};

After replacing the android client id the error was .
TypeError :- not an object evaluating (_expo.default.google) .
This error i was geeting when i implementing the google login with expo cli
Thanks again

Sorry, @abhinavv.

I’m a bit confused, is your issue with the Facebook log in or Google?

1 Like

@adamjnav i got it solved please change some details on your forum of facebook expo document and google expo document the method says to import Expo but doing that i get the error of undefiend object it should be import Facebook or import Google from ‘expo’

i had a similar issue, to clarify, the issue is the documentation here

based on the documentation, the function call would be


so one would assume that the Expo module would be imported. based on this youtube tutorial from expo, the import should be

import Expo from ‘expo’;

but based on the changes for Expo, this is not accepted already. the accepted way should be

import * as Expo from 'expo';

or import the Expo Facebook module only

import { Facebook } from 'expo';

the documentation is not yet updated to reflect this

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.