react-native-facebook-login
react-native-facebook-login copied to clipboard
No static method startActivity(Landroid/app/Activity;Landroid/content/Intent;Landroid/os/Bundle;)V in class Landroid/support/v4/app/ActivityCompat
I am using your lib, its working fine in iphone but not in android. I have costume button for facebook login and i am facing this issue in android. lets brief about issue:
If i have facebook app in android phone than not an issue if i am not having a facebook app than it will not open browser of facebook login, app directly crashed.
In android Build.gradle file i am using
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
compile 'com.android.support:appcompat-v7:25.0.2' this one is app compact library.
I dont know what happen exactly. Please help me out.
Hi, MhtSuthar I experienced same thing thing. I think they might made some changes in new version 1.5. I downgraded react-native-facebook-login version to 1.4 and it solved the issue.
Have same problem. Downgrading to 1.4 solved the issue
Any other solution rather than downgrading to 1.4?
OK finally by adding
compile 'com.facebook.android:facebook-android-sdk:4.20.0'
it works!
This is an issue specifically when the phone doesn't have the facebook app installed. I've had it working fine with the app, then removed the facebook app and this happened. @prjmax has the right answer. I'm updating the Android docs to reflect this. Please merge, @magus ! =)