facebook + android : Only fullscreen opaque activities can request orientation

From the latest fb integration guide, we don't need to specify either theme or orientation that is causing crash on android 8.0 . So we should use latest fb sdk with their new settings:

<activity android:name="com.facebook.FacebookActivity"
    android:configChanges=
            "keyboard|keyboardHidden|screenLayout|screenSize|orientation"
    android:label="@string/app_name" />

https://developers.facebook.com/docs/facebook-login/android/#manifest


Removing this attribute:

android:screenOrientation="portrait"

from FacebookActivity tag, may solve the problem.


When i removed this <item name="android:windowIsTranslucent">true</item> from style problem was solved.