title: Error Using Facebook Login With Parse Server
body: <p>I'm one of the many users migrating off of Parse and onto Heroku (w/ MongoLab sandbox), using <a href="https://parse.com/docs/server/guide" rel="noreferrer">https://parse.com/docs/server/guide</a> as a guide. </p>
  
  <p>Things were going fine with the migration (objects can be created / retrieved via REST commands on the remote repo) until I tried using (iOS) Facebook login. </p>
  
  <p>The method:</p>
  
  <pre><code>[PFFacebookUtils logInInBackgroundWithReadPermissions: ... ]
  </code></pre>
  
  <p>which had been working when Parse hosted, now returns the following error:</p>
  
  <pre><code>[Error]: Facebook auth is invalid for this user. (Code: 101, Version: 1.12.0)
  </code></pre>
  
  <hr>
  
  <p>Note: the only change to my (previously working) iOS code is to point the Parse server to my new, manually-hosted repo, as shown below:</p>
  
  <pre><code> let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -&gt; Void in
          ParseMutableClientConfiguration.applicationId = "&lt;*APP ID*&gt;"
          ParseMutableClientConfiguration.clientKey = "&lt;*CLIENT KEY*&gt;"
          ParseMutableClientConfiguration.server = "https://&lt;*HEROKU APP ID*&gt;.herokuapp.com/parse"
      })
  
   Parse.initializeWithConfiguration(parseConfiguration) 
  </code></pre>
  
  <p>&amp; the only modification to the open source Parse Server code (<a href="https://github.com/ParsePlatform/parse-server-example" rel="noreferrer">https://github.com/ParsePlatform/parse-server-example</a>) is substituting the configuration to match my Parse / mongo identification:</p>
  
  <pre><code>var api = new ParseServer({
    databaseURI:     'mongodb://&lt;*UNIUQUE ID*&gt;' || 'mongodb://localhost:27017/dev',
    cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
    appId: '&lt;*PARSE APP ID*&gt;',
    masterKey: '&lt;*PARSE MASTER KEY*&gt;'
  });
  </code></pre>