Monday, 4 October 2021

What is the difference between API 30 and other lower API level in terms of Facebook Login SDK for Android?

I've upgraded existing Facebook SDK to 8.2.0 because Facebook Login SDk is deprecating Webview functionality.

So basically Fb login should open in external browser instead of own app webview. It's working fine for below Android 11, but it's not taking effect on Android 11.

So is there any extra steps to do?

Source: https://developers.facebook.com/docs/facebook-login/android/deprecating-webviews

Code:

<meta-data android:name="com.facebook.sdk.ApplicationId" 
        android:value="@string/facebook_app_id"/>
    
    <activity android:name="com.facebook.FacebookActivity"
        android:configChanges=
                "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
        android:label="@string/app_name" />
    <activity
        android:name="com.facebook.CustomTabActivity"
        android:exported="true">
        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="@string/fb_login_protocol_scheme" />
        </intent-filter>
    </activity>


from What is the difference between API 30 and other lower API level in terms of Facebook Login SDK for Android?

No comments:

Post a Comment