Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info to install from github #1285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions platforms/ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ Currently these are set as defaults, so please change:

This plugin requires [Cordova CLI](http://cordova.apache.org/docs/en/3.5.0/guide_cli_index.md.html).

Installing this plugin directly from Cordova Registry currently breaks the symlinks in `FacebookSDK.framework` [CB-6092](https://issues.apache.org/jira/browse/CB-6092). Easiest solution for now is to just `git clone` this project and install it with *Cordova CLI* using the local clone.
```sh
$ git clone https://github.com/Wizcorp/phonegap-facebook-plugin.git
Installing this plugin directly from the NPM Cordova Registry currently breaks the symlinks in `FacebookSDK.framework` [CB-6092](https://issues.apache.org/jira/browse/CB-6092). Easiest solution is to add this plugin from its github url :
```
<plugin name="phonegap-facebook-plugin" spec="https://github.com/Wizcorp/phonegap-facebook-plugin.git">
<variable name="APP_ID" value="<YOUR APPID>" />
<variable name="APP_NAME" value="<YOUR APPNAME>" />
</plugin>
```

To install the plugin in your app, execute the following (replace variables where necessary):
Expand All @@ -31,7 +34,8 @@ $ cordova create myApp
$ cd myApp/
$ cordova platform add ios

# The path you cloned the plugin to earlier
# Remember to replace APP_ID and APP_NAME variables
$ cordova -d plugin add /path/to/cloned/phonegap-facebook-plugin --variable APP_ID="123456789" --variable APP_NAME="myApplication"
# In order to target a specific version, the release tag can be concatenated to the github url
# For instance : https://github.com/Wizcorp/phonegap-facebook-plugin.git#v0.12.0
$ cordova -d plugin add https://github.com/Wizcorp/phonegap-facebook-plugin.git --variable APP_ID="123456789" --variable APP_NAME="myApplication"
```