Facebook Login working but I cannot get response in response.json()

I am using the same code as in expo docs

if (type === 'success') {
      // Get the user's name using Facebook's Graph API
      const response = await fetch(`https://graph.facebook.com/me?access_token=${token}`);
      alert('Logged in!', `Hi ${(await response.json()).name}!`);
    }

alert only shows Logged in! and when I console response.json() separately it shows object like below

{_40:0,_65:0,_55:null,_72:null}

Please tell me what am I doing wrong, I am new to React Native & Expo.
Thanks in advance

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