We have integrated Facebook login in our app from long time. Now Facebook is making this webview change, that login page should open in external browser and for the SDK 8.2.0 is required and also they added some condition which needs to be satisfied.
Code:
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />
<activity
android:name="com.facebook.FacebookActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"/>
Troubleshoot:
- I'm not setting this: LoginBehavior=WEB_VIEW_ONLY
- I have a latest chrome default browser in my Android 11 device
- I don't have facebook app installed
- This below, I checked docs, but not sure, what is required related to custom tabs
Ensure that your app has configured support for Custom Tabs properly. (For more information on Custom Tabs, see the Custom Tabs documentation.) To test your configuration:
Tried below both option, but no luck!
Option 1 Ensure your app is using version 8.2.0 or later of the Facebook SDK for Android. If so, you should not need to make any modifications to your Android manifest. If you have any items referencing “CustomTabMainActivity” or “CustomTabActivity”, remove them.
Option 2 Configure your Custom Tabs intent filter exactly following the instructions in the "Edit Your Resources and Manifest" step of the Facebook Login for Android - Quickstart.
Any other suggestion would be appreciated. Thanks.
from Why does Facebook login page is not opening in external browser for Android 11?
No comments:
Post a Comment