I've recently finished programming an app I've created using react native and expo. I used expo simulator to test the app on both ios and android and they both seem to work, but when I created the ipa file using expo build:ios
and ran it with testFlight, the facebook login didn't work (pressing the login button doesn't do anything).
I'm using Facebook.logInWithReadPermissionsAsync
function to log-in.
修复-将RN SDK更新为v32.0.0
If you ask question with the code section, it will be helpful.
Add behavior: 'web' as below.
It worked for me in Expo client and production as well.
Facebook.logInWithReadPermissionsAsync(Config.loginSetup.facebookID,
{
permissions: ['public_profile','email'],
behavior: 'web'
})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.