无法读取未定义的属性“ getCurrentAccessToken”

时间:2019-08-15 07:48:25

标签: react-native facebook-access-token fbsdk react-native-fbsdk

似乎我的代码中未定义AccessToken

    import {AccessToken} from 'react-native-fbsdk';
 AccessToken.getCurrentAccessToken().then(
                                        (data) => {....}).catch(e => {
            console.log('fb could not connect because: ' + e);
        })

catch正在被调用。 我正在使用"react-native-fbsdk": "^1.0.1"

我的设备:iOS模拟器-iphone62-iOS 12

我的Podfile:

    pod 'FBSDKCoreKit'
    pod 'FBSDKLoginKit'
    pod 'FBSDKShareKit'
    pod 'Bolts'

0 个答案:

没有答案