onLoginFinished result just tells me the permissions granted. From repo it is not clear how to get the user profile. It seems that action-native-fbsdkcore should wrap FBSDKProfile.h, but can't see where it does it.
var FBSDKLogin = require('react-native-fbsdklogin'); var { FBSDKLoginButton, } = FBSDKLogin; var Login = React.createClass({ render: function() { return ( <View> <FBSDKLoginButton onLoginFinished={(error, result) => { if (error) { alert('Error logging in.'); } else { if (result.isCanceled) { alert('Login cancelled.'); } else { alert('Logged in.'); } } }} onLogoutFinished={() => alert('Logged out.')} readPermissions={[]} publishPermissions={['publish_actions']}/> </View> ); } });
source share