Skip to content

Commit cea75bb

Browse files
committed
Issue phonegap#193: error with plugin facebook
1 parent 64da9a1 commit cea75bb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,39 @@ This will produce the following notification in your tray:
448448

449449
![2015-08-25 16 08 00](https://cloud.githubusercontent.com/assets/353180/9472260/3655fa7a-4b22-11e5-8d87-20528112de16.png)
450450

451+
### Co-existing with FaceBook Plugin
452+
453+
There are a number of Cordova FaceBook Plugins available but the one that we recommend is [Jeduan's fork](https://github.com/jeduan/cordova-plugin-facebook4) of the original Wizcorp plugin. It is setup to use Gradle/Maven properly and the latest FaceBook SDK.
454+
455+
To add to your app:
456+
457+
```
458+
phonegap plugin add https://github.com/jeduan/cordova-plugin-facebook4 --variable APP_ID="App ID" --variable APP_NAME="App Name"
459+
```
460+
or
461+
462+
```
463+
cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4 --variable APP_ID="App ID" --variable APP_NAME="App Name"
464+
```
465+
466+
If you have an issue compiling the app and you are getting this error:
467+
468+
```
469+
* What went wrong:
470+
Execution failed for task ':processDebugManifest'.
471+
> Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 15 declared in library /Users/smacdona/code/bookface/platforms/android/build/intermediates/exploded-aar/com.facebook.android/facebook-android-sdk/4.6.0/AndroidManifest.xml
472+
Suggestion: use tools:overrideLibrary="com.facebook" to force usage
473+
```
474+
475+
Then you can add the following entry into your config.xml file in the android platform tag.
476+
477+
```
478+
<platform name="android">
479+
<preference name="android-minSdkVersion" value="15"/>
480+
</platform>
481+
```
482+
483+
451484
## iOS Behaviour
452485

453486
### Sound

0 commit comments

Comments
 (0)