ios - xcode 6 "is not registered as a URL scheme. Please add it in your Info.plist"错误

标签 ios facebook react-native

尝试在我的应用程序中配置 facebook 连接。 xcode 的新手。

我应该提到我正在使用 React-native。

我检查了 10 次配置

plist screenshot

仍然出现此错误:

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/

相关文章:

ios - 当顶部栏隐藏时,UINavigationController 失去向后滑动功能

ios - UITableViewCell 中的 UIPickerView - 如何选择值而不是滚动 TableView?

java - 用户注册与 Facebook 连接

java - com.android.build.api.transform.TransformException :

ios - 仅在 ios 设备上 react native "No bundle URL present"

javascript - react native : How to save date in realm DB

ios - "This app relies on Fabric"使用 CocoaPod 安装 fabric

ios - 通过文件夹引用将嵌套 Assets 目录添加到 PBXResourcesBuildPhase

javascript - 在 Facebook "like"按钮 URL 中传递日语(非拉丁语)URL 失败

ios - 分享到 Messenger 的链接时缺少报价