React-Native: Return to app after Facebook login?
<p>I am building an app with react-native. I have implemented facebook login using this tutorial: <a href="https://developers.facebook.com/docs/react-native/login" rel="nofollow">https://developers.facebook.com/docs/react-native/login</a>. </p>

<p>When pressing the "Log in with Facebook" button in the app, it takes me to the facebook web page and asks me to give the app permission to use some of my personal information. I accept, but it never takes me back to the app.</p>

<p>Any suggestions on how to make it so I get redirected back to the app?</p>

<p><strong>Here is the code I am using:</strong></p>

<pre><code>'use strict'

import React, { Component } from 'react'
import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  TouchableHighlight,
  Navigator
} from 'react-native'

const FBSDK = require('react-native-fbsdk')
const {
  LoginButton
} = FBSDK

class Login extends Component{
  render() {
    return (
      &lt;View&gt;
        &lt;LoginButton
          publishPermissions={["publish_actions"]}
          onLoginFinished={
            (error, result) =&gt; {
              if (error) {
                alert("Login failed with error: " + result.error)
              } else if (result.isCancelled) {
                alert("Login was cancelled")
              } else {
                alert("Login was successful with permissions: " + result.grantedPermissions)
              }
            }
          }
          onLogoutFinished={() =&gt; alert("User logged out")}/&gt;
      &lt;/View&gt;
    )
  }
}

class App extends Component {
  render() {
    return (
      &lt;View&gt;
        &lt;Text&gt;Welcome to the Facebook SDK for React Native!&lt;/Text&gt;
        &lt;Login /&gt;
      &lt;/View&gt;
    )
  }
}

AppRegistry.registerComponent('App', () =&gt; App)
</code></pre>