Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-facebook

Package Overview
Dependencies
Maintainers
8
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-facebook - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

app-events.android.js

1

index.android.js

@@ -10,1 +10,2 @@ "use strict";

__export(require("./ui/share-button"));
__export(require("./app-events"));

2

index.android.metadata.json

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc