英文:
Facebook Login Not Working in Android Ionic
问题
我有一个带有Facebook登录功能的Ionic应用程序。该应用程序仍处于开发模式。在iOS平台上,无论是否安装了iOS设备上的Facebook应用程序,它都可以正常运行。
但是在Android上,只有当Android设备上安装了Facebook应用程序时,Facebook登录才有效。当设备上未安装Facebook应用程序时,尝试登录时会显示这个界面 login。当我点击"继续"时,什么都不会发生,我的应用程序也无法点击。
我正在使用Facebook Android SDK 12,因此也支持自定义标签。
我已经按照以下步骤进行了设置:
- 我已设置所有的URL,如隐私政策和数据删除URL。
- 我已添加了iOS和Android两个平台。
- 我已在Android部分添加了密钥哈希,并适当设置了类和包名称。
- 我已获得了电子邮件和public_profile权限的高级访问。
我的设置看起来像这个图片 settings
请告诉我如何在没有安装Facebook应用程序的情况下使其正常工作。
注意:我还尝试使用在Facebook开发者控制台中具有管理员角色的同一帐户登录。
英文:
I have an ionic app with a facebook login feature.
The app is still in development mode. It works fine for ios platform with or without facebook app installed in ios device.
But for android, the facebook login works only when the facebook app is installed in the android device. When the facebook app is not installed in device and I try to login it shows me this screen login. After I click on continue nothing happens and my app becomes unclickable.
I am using facebook android sdk 12 so there is support for custom tabs as well.
I have followed all the steps like:
- I have set all the urls like privacy policy & Data Deletion Url.
- I have added both platform - Ios & Android.
- I have added key hash in android section and set the class and package name
appropriately. - I have advanced access for email & public_profile permissions.
My settings looks like the image settings
Please let me know what can I do to make it work without facebook app installed.
Note: Also I am trying to login using the same account that has admin role in facebook developer console.
答案1
得分: 0
问题出在我使用的Facebook SDK中。升级到14.1.1以上的任何版本都将解决此问题。
请参考链接:https://github.com/facebook/facebook-android-sdk/blob/main/CHANGELOG.md#1411
英文:
The issue was in facebook sdk that I was using. Upgrading to any version above 14.1.1 will fix this issue.
Please refer the link : https://github.com/facebook/facebook-android-sdk/blob/main/CHANGELOG.md#1411
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论