Closed felire closed 4 years ago
Any idea what could be?
<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:enabled="false" 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/FACEBOOK_BUNDLE_SCHEME" />
</intent-filter>
</activity>
The trick is to Add android:enabled="false"
to com.facebook.CustomTabActivity
Activity
Thanks! It works!
🐛 Bug Report
I integrated the sdk without problems but I don't know what is going on on android. When I click on the Login Button, it navigate to a WebView, instead of showing the typical modal in the screen (I don't have Facebook installed).
To Reproduce
Install and configure the last version of
react-native-fbsdk
This is the code of my
AndroidManifest.xml
:Expected Behavior
I want the modal appear in my actual screen
Current Behavior
Code Example
I'm just integrating so I used the
LoginButton
from theReadme
:Environment
react-native
: 0.62.2react-native-fbsdk
: ^2.0.0