尝试在我的应用程序中配置 facebook 连接。 xcode 的新手。
我应该提到我正在使用 React-native。
我检查了 10 次配置
仍然出现此错误:
Exception thrown while invoking newSession on target <FacebookLoginManager: 0x7c2579d0> with params (
5
): fb1413783292275789 is not registered as a URL scheme. Please add it in your Info.plist
React-native 代码:
var FacebookLoginManager = require('NativeModules').FacebookLoginManager;
login() {
FacebookLoginManager.newSession((error, info) => {
if (error) {
this.setState({result: error});
} else {
this.setState({result: info});
}
});
}
render() {
return (
<View style={styles.container}>
<TouchableHighlight onPress={this.login}>
<Text style={styles.welcome}>
Facebook Login
</Text>
</TouchableHighlight>
<Text style={styles.instructions}>
{this.state.result}
</Text>
</View>
);
}
最佳答案
我认为解决方案是
替换 URL types -> CFBundleURLTypes, URL Schemes -> CFBundleURLSchemes
即使它自动变回。 点击播放按钮就可以了
关于ios - xcode 6 "is not registered as a URL scheme. Please add it in your Info.plist"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30741632/