Facebook登录在Android Ionic中无法工作。

huangapple go评论75阅读模式
英文:

Facebook Login Not Working in Android Ionic

问题

我有一个带有Facebook登录功能的Ionic应用程序。该应用程序仍处于开发模式。在iOS平台上,无论是否安装了iOS设备上的Facebook应用程序,它都可以正常运行。

但是在Android上,只有当Android设备上安装了Facebook应用程序时,Facebook登录才有效。当设备上未安装Facebook应用程序时,尝试登录时会显示这个界面 login。当我点击"继续"时,什么都不会发生,我的应用程序也无法点击。

我正在使用Facebook Android SDK 12,因此也支持自定义标签。

我已经按照以下步骤进行了设置:

  1. 我已设置所有的URL,如隐私政策和数据删除URL。
  2. 我已添加了iOS和Android两个平台。
  3. 我已在Android部分添加了密钥哈希,并适当设置了类和包名称。
  4. 我已获得了电子邮件和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:

  1. I have set all the urls like privacy policy & Data Deletion Url.
  2. I have added both platform - Ios & Android.
  3. I have added key hash in android section and set the class and package name
    appropriately.
  4. 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

huangapple
  • 本文由 发表于 2023年3月31日 19:52:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75898226.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定