Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native-facebook-login #64

Closed
BigPun86 opened this issue Jan 19, 2016 · 4 comments
Closed

react-native-facebook-login #64

BigPun86 opened this issue Jan 19, 2016 · 4 comments

Comments

@BigPun86
Copy link
Contributor

I am getting "undefined is not a function (evaluating 'FBLoginManager.getCredentials')" on React Native Android Development:

componentWillMount() {
    var _this = this;
    FBLoginManager.getCredentials(function (error, data) {
        console.log(error, data);
        if (!error) {
            store.dispatch(facebookUserIsLoggedIn(data.credentials));
            Actions.dashboard();
            _this.setState({credentials: data.credentials});
        } else {
            _this.setState({credentials: null});
        }
    });
}

screenshot_2016-01-19-10-31-35

In my iOS Version this module works great, just having issues on Android

@lwhiteley
Copy link
Contributor

currently there is a difference between the android and IOS versions
please see issue #55

for now you can follow the api/use the login button that comes with the android version
https://github.com/magus/react-native-facebook-login/blob/master/index.android.js

@BigPun86
Copy link
Contributor Author

Okay thanks! But unfortunately it still wont work. It tell´s me now: "undefined is not an object (evaluatiing 'FBLoginManager.getCurrentToken')"

@lwhiteley
Copy link
Contributor

did you set up your main activity correct and add the module there.

please ensure you followed the steps in the setup doc properly.
https://github.com/magus/react-native-facebook-login/blob/master/android/README.md

@BigPun86
Copy link
Contributor Author

Oh man! Thanks, i switched the branch on git where my setup for Android wasn´t there anymore....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants