React-native-fbsdk: FB Login Result Returning a 'ECOM.FACEBOOK.SDK.LOGIN308' Error for iOS 10

Created on 10 Sep 2016  路  1Comment  路  Source: facebook/react-native-fbsdk

Running react-native-fbsdk ^0.3.0, and Xcode 8 beta with iOS 10, I kept getting the Login Error in the Title, ECOM.FACEBOOK.SDK.LOGIN308 when the following code was executed:

LoginManager.logInWithReadPermissions([
      'public_profile'
    ]).then((result) => {
      if (result.isCancelled) {
        alert('Login cancelled');
      } else {
        alert('Login success with permissions: '
            + result.grantedPermissions.toString());
      }
    }, function (error) {
      console.log(error);
      alert('Login fail with error: ' + error);
    });

Solution

Under the _capabilities_ section of the app, you need to enable _Keychain Sharing_ for you application. Upon enabling this.
screen shot 2016-09-10 at 2 01 39 pm

Most helpful comment

iOS SDK released 4.15.1 to support iOS 10. Make sure you use it. https://developers.facebook.com/docs/ios/change-log-4.x

>All comments

iOS SDK released 4.15.1 to support iOS 10. Make sure you use it. https://developers.facebook.com/docs/ios/change-log-4.x

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nlindeke picture nlindeke  路  5Comments

vladotg picture vladotg  路  5Comments

peymancyb picture peymancyb  路  6Comments

justin808 picture justin808  路  3Comments

pranny picture pranny  路  6Comments