From 3623ef54fb1165aadeb565b929a75c2a97fec512 Mon Sep 17 00:00:00 2001 From: TruongSinh Tran-Nguyen Date: Thu, 11 Sep 2014 14:23:13 +0300 Subject: [PATCH] automatically adding FACEBOOK_APP_ID and FACEBOOK_DISPLAY_NAME to *-Info.plist via variables --- README.md | 5 +++-- plugin.xml | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 693325a..abfafd6 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,8 @@ We currently tested FacebookSDK for following platforms and versions: ##Prerequisites ###iOS -Download the latest [FacebookSDK](https://developers.facebook.com/docs/ios/), and follow the [getting started guideline](https://developers.facebook.com/docs/ios/getting-started/). +Download the latest [FacebookSDK](https://developers.facebook.com/docs/ios/), and follow the [getting started guideline](https://developers.facebook.com/docs/ios/getting-started/). +This plugin automatically adds FACEBOOK_APP_ID and FACEBOOK_DISPLAY_NAME to *-Info.plist via variables The guideline is well documented and people at Facebook may change stuff in the future, so we stick to that instead of fancy cordova plugin hacks (well, cordova people also modify plugin flow too). @@ -46,7 +47,7 @@ Here is what to do for Android before installing our plugin. ##Installing the plugin To add this plugin just type: -```cordova plugin add https://github.com/ccsoft/cordova-facebook.git``` +```cordova plugin add https://github.com/ccsoft/cordova-facebook.git --variable FACEBOOK_APP_ID=[...] --variable FACEBOOK_DISPLAY_NAME=[...]``` To remove this plugin type: ```cordova plugin remove com.ccsoft.plugin.CordovaFacebook``` diff --git a/plugin.xml b/plugin.xml index 52825a3..d5c67aa 100644 --- a/plugin.xml +++ b/plugin.xml @@ -9,6 +9,8 @@ CCSoft facebook,cordova,ccsoft Apache 2.0 License + + @@ -50,6 +52,12 @@ + + $FACEBOOK_APP_ID + + + $FACEBOOK_DISPLAY_NAME +