Well, I found the answer, struggled with the same problem. I really tried to get an ionic cord project to use facebook plugin
You need to go to the Platform / android folder of your cordova project. At the moment, you are simply dealing with a regular Android project.
run the following command
android update project --target 3 --path C:\Users\<yourname>\Documents\Projects\<projectName>\ionic\platforms\android --library ../../../../facebook-android-sdk-3.7/facebook
Ok, a couple of tricks
- The -library argument should be relative to your Android project. And the library argument should refer to the facebook file you downloaded (as part of the instructions for the facebook plugin).
- You must have API level 8 on the Android SDK.
- Once the command completes, go to local.properties and verify that sdk.dir is installed correctly. I had double slashes, I had to fix it.
go to the project. properties and you should see something like the following
android.library.reference.1 = CordovaLib
android.library.reference.2 = .. / .. / .. / .. / facebook-android-sdk-3.7 / facebook target = android-18 '
Hope this helps someone, I also don't really like using eclipse for a phone saver.
source share