我是使用
https://parse.com/docs/server/guide作为向导从Parse迁移到Heroku(带MongoLab沙箱)的众多用户之一.
迁移的事情进展顺利(可以通过远程仓库上的REST命令创建/检索对象),直到我尝试使用(iOS)Facebook登录.
方法:
[PFFacebookUtils logInInBackgroundWithReadPermissions: ... ]
当Parse托管时,它一直在工作,现在返回以下错误:
[Error]: Facebook auth is invalid for this user. (Code: 101,Version: 1.12.0)
注意:对我(之前工作的)iOS代码的唯一更改是将Parse服务器指向我新的手动托管的repo,如下所示:
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)
&安培;对开源解析服务器代码(https://github.com/ParsePlatform/parse-server-example)的唯一修改是替换配置以匹配我的Parse / mongo标识:
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*>' });
解决方法
你需要添加密钥facebookAppIds,其中包含一系列有效的facebook app id,这在文档中提到了
here.
或者,添加FACEBOOK_APP_ID密钥作为引用[here](https://github.com/ParsePlatform/parse-server/issues/82)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。