ngCordova / commands fail while installing Facebook Plugin Android

I’m following the ngCordova documentation to install FacebookConnect plugin in Android context.

So I typed the following command:

sudo cordova -d plugin add https://github.com/phonegap/phonegap-facebook-plugin.git --variable APP_ID="123" --variable APP_NAME="MyAppName"

And it generates the folder com.phonegap.plugins.facebookconnect.
The documentation does not mention it.
So the specified command failed.

Is it normal?

I found the trick.

The ngCordova documentation related to Android and Facebook should be updated to this (at the very bottom):

1 Like

Would you mind putting together a pull request for this?

Yes of course.

It’s done: https://github.com/driftyco/ng-cordova/pull/409