This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
LoginManager as FBLoginManager, | |
GraphRequest, GraphRequestManager | |
} from 'react-native-fbsdk-next'; | |
function getGenderAndBirthdayFromFacebookLogin() { | |
FBLoginManager.logInWithPermissions(['public_profile', 'user_gender', 'user_birthday']) | |
.then((result) => { | |
if (result.error) { | |
showAlert('ไม่สามารถล็อกอิน Facebook ได้', result.error.message) |