5

Has anyone managed to do this?!

I've tried various combinations of sdk/apk from this site with no luck. https://developers.facebook.com/docs/android/downloads

When I use this SDK...

dependencies {
    compile 'com.facebook.android:facebook-android-sdk:3.23.0'
}

... it only seems to work with targetSdkVersion "L". So fine. I run that emulator in x86 and use adb to install

./sdk/platform-tools/adb install Facebook-25.0.0.19.30.apk

I get "INSTALL_FAILED_NO_MATCHING_ABIS". On ARM, I have not managed to get the emulator to actually start. It's been "Preparing Recommendations" for over 30 minutes now.

With a lower Facebook sdk version (com.facebook.android:facebook-android-sdk:3.21.1), I am able to run the emulator with a targetSdkVersion of 19, and install the Facebook.apk (Facebook APK 22.0)

Unfortunately, when I open the Facebook app, I get the message that

"This version of android is no longer supported. please upgrade your device and try again"

I must be doing something wrong. Could anyone point me in the right direction?

user313724
  • 3,425
  • 4
  • 19
  • 15

2 Answers2

2

With the newer Facebook SDKs, I couldn't find the Facebook APK file bundled with the Downloads - Facebook Android SDK.

To install facebook on an emulator:

  • I installed the Google Play Intel Atom Image from the SDK Manager.

  • Created an AVD with the Google Play Intel Atom Image

enter image description here

  • Now you can install Facebook from the Play Store (after sign in)

enter image description here

Now you can use Facebook to test Native login, etc,.

mrsauravsahu
  • 2,046
  • 2
  • 15
  • 21
1

Answer taken from here

INSTALL_FAILED_NO_MATCHING_ABIS is when you are trying to install an app that has native libraries and it doesn't have a native library for your cpu architecture. For example if you compiled an app for armv7 and are trying to install it on an emulator that uses the Intel architecture instead it will not work.

Also, you can implement a solution on the emulator as seen here.

And, for the second error I think it's pretty clear: Facebook won't let you use that app because they don't support it anymore.

Community
  • 1
  • 1
Joaquin Iurchuk
  • 5,499
  • 2
  • 48
  • 64
  • Right. So it seems the only emulator supported by facebook's apk is the "L" sdk version on ARM. Which is pretty strange. I can't imagine that the facebook apk works only on the android TV emulator and not phone emulator. So I'm sure there's something else wrong. – user313724 Mar 06 '15 at 04:34
  • Android L doesn't exist anymore. It's called Lollipop, is the API 21 and is not Android TV. Is the latest version of Android for smartphones and tablets. – Joaquin Iurchuk Mar 06 '15 at 04:37