diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index d01772eee..3eeeff32c 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -116,8 +116,9 @@ docType: "<$ doc.docType $>" <@- if doc.decorators @> + <@ for prop in doc.decorators[0].argumentInfo @> -
$ cordova plugin add <$ prop.plugin $>
+
$ <@ if prop.install @><$ prop.install $><@ else @>cordova plugin add <$ prop.plugin $><@ endif -@>

Repo: <$ prop.repo $> diff --git a/src/plugins/facebook.ts b/src/plugins/facebook.ts index e3a86a5b0..e59918e52 100644 --- a/src/plugins/facebook.ts +++ b/src/plugins/facebook.ts @@ -80,7 +80,8 @@ import {Plugin, Cordova} from './plugin'; @Plugin({ plugin: 'cordova-plugin-facebook4', pluginRef: 'facebookConnectPlugin', - repo: 'https://github.com/jeduan/cordova-plugin-facebook4' + repo: 'https://github.com/jeduan/cordova-plugin-facebook4', + install: 'cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"' }) export class Facebook {