[英]Expo-ios / facebook login doesn't work standalone app
I've recently finished programming an app I've created using react native and expo. 我最近完成了对使用react native和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). 我使用expo模拟器在ios和android上测试了该应用程序,它们似乎都可以运行,但是当我使用
expo build:ios
创建ipa文件并使用testFlight运行它时,facebook登录无法正常工作(按登录按钮)什么都不做)。
I'm using Facebook.logInWithReadPermissionsAsync
function to log-in. 我正在使用
Facebook.logInWithReadPermissionsAsync
函数登录。
修复-将RN SDK更新为v32.0.0
If you ask question with the code section, it will be helpful.
如果您在代码部分提出问题,将很有帮助。
Add behavior: 'web' as below. 添加行为:“ web” ,如下所示。
It worked for me in Expo client and production as well. 它对我在Expo客户和生产中也起作用。
Facebook.logInWithReadPermissionsAsync(Config.loginSetup.facebookID,
{
permissions: ['public_profile','email'],
behavior: 'web'
})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.