nativescript-facebook
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -10,1 +10,2 @@ "use strict"; | ||
__export(require("./ui/share-button")); | ||
__export(require("./app-events")); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./login-manager"},{"from":"./ui/login-button"},{"from":"./login-event-data"},{"from":"./share-manager"},{"from":"./ui/share-button"}]}] | ||
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./login-manager"},{"from":"./ui/login-button"},{"from":"./login-event-data"},{"from":"./share-manager"},{"from":"./ui/share-button"},{"from":"./app-events"}]}] |
@@ -7,1 +7,2 @@ export * from "./login-manager"; | ||
export * from "./ui/share-button"; | ||
export * from "./app-events"; |
@@ -11,2 +11,3 @@ "use strict"; | ||
__export(require("./ui/share-button")); | ||
__export(require("./app-events")); | ||
var BaseDelegate = (function (_super) { | ||
@@ -13,0 +14,0 @@ __extends(BaseDelegate, _super); |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./ui/login-button"},{"from":"./login-manager"},{"from":"./login-event-data"},{"from":"./share-manager"},{"from":"./ui/share-button"}]}] | ||
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./ui/login-button"},{"from":"./login-manager"},{"from":"./login-event-data"},{"from":"./share-manager"},{"from":"./ui/share-button"},{"from":"./app-events"}]}] |
{ | ||
"name": "nativescript-facebook", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "NativeScript plugin, wrapper of native Facebook SDK for Android and iOS.", | ||
@@ -5,0 +5,0 @@ "nativescript": { |
@@ -49,2 +49,3 @@ NativeScript : Facebook SDK ![apple](https://cdn3.iconfinder.com/data/icons/picons-social/57/16-apple-32.png) ![android](https://cdn4.iconfinder.com/data/icons/logos-3/228/android-32.png) | ||
- [Get Current Access Token](#get-current-access-token) | ||
- [Basic Analytics](#basic-analytics) | ||
- [Graph API Example](#graph-api-example) | ||
@@ -62,2 +63,3 @@ - [Release notes](#release-notes) | ||
- [ ] Graph API | ||
- [x] Basic Analytics | ||
@@ -351,3 +353,3 @@ | ||
**Note** The share dialog will try fallback to browse page sharing if user doesn't have Facebook installed (only for linkContent) | ||
**Note** The share dialog will try fallback to browse page sharing if user doesn't have Facebook installed (only for linkContent) | ||
@@ -600,2 +602,30 @@ ```TypeScript | ||
## Basic Analytics | ||
The plugin allows to log analytics events. At the initialization of the application you need to init analytics: | ||
```Typescript | ||
application.on(application.launchEvent, function (args) { | ||
nsFacebook.init("{facebook_app_id}"); | ||
nsFacebook.initAnalytics(); | ||
}); | ||
``` | ||
Events logging: | ||
```Typescript | ||
nsFacebook.logEvent('Lead'); | ||
``` | ||
Logging event with parameters: | ||
```Typescript | ||
const value = 5; | ||
const parameters = [{ | ||
key: 'value', | ||
value: value.toString(), | ||
}]; | ||
nsFacebook.logEvent(FundsAdded, parameters); | ||
``` | ||
## Graph API Example | ||
@@ -602,0 +632,0 @@ Once the Facebook access token is retrieved you can execute Graph API requests. In the example below after successful login, the access token is stored in application settings. And then on the home view it is retrieved and 2 Graph API calls are executed. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
222444
73
3103
677