Bug in xcode 6 "not registered as url scheme. Please add it to your Info.plist"

Trying to set up facebook connection in my app. new to xcode.

I must mention that I am using React-native.

I checked configs 10 times

plist screenshot

still gets this error:

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 based code:

    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>
    );
  }

      

+3


source to share


1 answer


I think the solution is

Replace URL types -> CFBundleURLTypes, URL Schemes -> CFBundleURLSchemes



even if it comes back automatically. press play button and it will

+4


source







All Articles