I'm new for facebook app, so I need help to install the facebook api on android emulator in windows 7.
I have installed the facebook api but I got a library error..
[2013-04-02 16:22:35 - HelloFacebookSample] Unable to resolve target 'android-8'
in library
....\facebook ?
To install an APK file on the emulated device, drag an APK file onto the emulator screen. An APK Installer dialog appears. When the installation completes, you can view the app in your apps list. To add a file to the emulated device, drag the file onto the emulator screen.
The current version of the Facebook SDK for Android is version 14.1. 0 and requires the Android API 15.
You don't install the Facebook API. Neither on a device nor on an emulator.
You make calls to the Facebook API using their SDK for various platforms. In your case, the Facebook Android SDK. This Facebook Android SDK is to be integrated in your application that you develop.
However, if you meant install the Facebook App on the emulator (the OP is mighty unclear), then you will need to grab the .apk file that is included in the SDK bundle that you can download from the link above. To install that APK, follow these steps:
Make sure you have the emulator already running.
Now, at the command prompt, type this command:
adb install facebook.apk
Following the above steps will install the Facebook application on your emulator.
If you want to use Facebook as part of your application, you can get hold of the Facebook SDK, which is a Library project to your own. You cannot install Facebook on the Emulator to test, but it will fall back to using the Internet Browser for it's authentication.
The best solution is to test on a real device. You can try using Samsung Remote Labs if you want a real device to test on but don't have one.
If you want to install the Facebook .APK file, you need to perform the following steps:
1) Download the corresponding Facebook .APK file for your Android SDK. Please check this link: [Facebook SDK for Android v4.x Downloads1
2) If you are on Mac OSX:
Go to Android Studio > Terminal:
cd /Users/[your_username]/Library/Android/sdk (or where is the location of the SDK)
3) ./platform-tools/adb install /Users/admin/Downloads/Facebook-some_version.apk
4) You should see a "Success" message.
Good luck !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With