1.1.0 • Published 9 years ago
plugin-var-plugin v1.1.0
NativeScript Facebook Plugin
This is a proof of concept plugin.
You can vote for a cross-platform implementation in the idea portal.
Installation
Clone the repo:
git clone git@github.com:NativeScript/nativescript-facebook-plugin.gitGo to your app and add the plugin:
tns plugin add ../nativescript-facebook-pluginYou will be prompted for the values of the FACEBOOK_APP_ID (1234567890) and APP_NAME (org.nativescript.myapp) plugin variables.
Usage iOS
You can see an ios sample in the ios-demo folder.
Usage Android
- Copy the content of the
android-demofolder into the<app_name>/app/folder. - Open the
node_modules/nativescript-facebook-plugin/platformsandroid/include.gradlefile. - Replace
__YOUR_FACEBOOK_APP_ID_HERE__with your facebook app id. - Run project.
Requirements
- NativeScript CLI 1.4+