I am one of many users who port Parse to Heroku (with the MongoLab sandbox), using https://parse.com/docs/server/guide as a guide.
Everything was fine with the migration (objects can be created / retrieved using REST commands on the remote repo) until I try to use (iOS) Facebook.
Method:
[PFFacebookUtils logInInBackgroundWithReadPermissions: ... ]
which worked when hosting Parse now returns the following error:
[Error]: Facebook auth is invalid for this user. (Code: 101, Version: 1.12.0)
Note. The only change for my (previously working) iOS code is to point the Parse server to my new manually supported repository, as shown below:
let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -> Void in ParseMutableClientConfiguration.applicationId = "<*APP ID*>" ParseMutableClientConfiguration.clientKey = "<*CLIENT KEY*>" ParseMutableClientConfiguration.server = "https://<*HEROKU APP ID*>.herokuapp.com/parse" }) Parse.initializeWithConfiguration(parseConfiguration)
& the only open-source Parse server code modification ( https://github.com/ParsePlatform/parse-server-example ) replaces the configuration according to my Parse / mongo identity:
var api = new ParseServer({ databaseURI: 'mongodb://<*UNIUQUE ID*>' || 'mongodb://localhost:27017/dev', cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', appId: '<*PARSE APP ID*>', masterKey: '<*PARSE MASTER KEY*>' });
ios facebook mongodb heroku parse-server
Jacob kyle
source share