title: Facebook Login using Exponent React Native
body: <p>Need help guys, currently using exponent and accessing the Exponent.Facebook.logInWithReadPermissionsAsync for authentication. Anyone has a guide in setting up the project. I can't find the iOS folder since in the instruction of facebook sdk, I need to add few libraries on the project. Here's my main.js:</p>
  
  <pre><code>import Expo from 'expo';
  import React from 'react';
  import { StyleSheet, Text, View } from 'react-native';
  import { Button } from 'react-native-elements';
  
  class App extends React.Component {
  
    authenticate = (token) =&gt; {
      const provider = firebase.auth.FacebookAuthProvider;
      const credential = provider.credential(token);
      return firebase.auth().signInWithCredential(credential);
    }
  
    login = async () =&gt; {
      const ADD_ID = 273131576444313
      const options = {
          permissions: ['public_profile', 'email'],
      }
      const {type, token} = await Expo.Facebook.logInWithReadPermissionsAsync(ADD_ID, options)
      if (type === 'success') {
          const response = await fetch(`https://graph.facebook.com/me?access_token=${token}`)
          console.log(await response.json());
          this.authenticate(token);
      }
  }
  
    render() {
      return (
        &lt;View style={styles.container}&gt;
          &lt;Text&gt;Open up main.js to start working on your app!&lt;/Text&gt;
          &lt;Button
            raised
            onPress={this.login}
            icon={{name: 'cached'}}
            title='RAISED WITH ICON' /&gt;
        &lt;/View&gt;
      );
    }
  
  }
  
  const styles = StyleSheet.create({
    container: {
      flex: 1,
      backgroundColor: '#fff',
      alignItems: 'center',
      justifyContent: 'center',
    },
  });
  
  Expo.registerRootComponent(App);
  </code></pre>
  
  <p>`</p>