Socket
Socket
Sign inDemoInstall

cordova-plugin-facebook4

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-facebook4 - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

src/ios/FBSDKMessengerShareKit.framework/FBSDKMessengerShareKit

2

package.json
{
"name": "cordova-plugin-facebook4",
"version": "1.1.1",
"version": "1.2.0",
"description": "Cordova Facebook SDK 4 Plugin",

@@ -5,0 +5,0 @@ "cordova": {

@@ -149,2 +149,3 @@ # cordova-plugin-facebook4

# Events

@@ -176,2 +177,15 @@

### App Invites
`facebookConnectPlugin.appInvite(Object options, Function success, Function failure)`
Please check out the [App Invites Overview](https://developers.facebook.com/docs/app-invites/overview) before using this. The URL is expected to be an [App Link](https://developers.facebook.com/docs/applinks).
Example options:
{
url: "http://example.com",
picture: "http://example.com/image.png"
}
## Sample Code

@@ -178,0 +192,0 @@

@@ -74,2 +74,7 @@ /* global FB */

exports.appInvite = function (options, s, f) {
// App Invites are not avaliable in JS.
s()
}
exports.logout = function (s, f) {

@@ -76,0 +81,0 @@ if (!assertInited()) return printError(f, new Error('init not called with valid version'))

@@ -1,13 +0,13 @@

var exec = require("cordova/exec");
var exec = require('cordova/exec')
exports.getLoginStatus = function getLoginStatus (s, f) {
exec(s, f, "FacebookConnectPlugin", "getLoginStatus", []);
exec(s, f, 'FacebookConnectPlugin', 'getLoginStatus', [])
}
exports.showDialog = function showDialog (options, s, f) {
exec(s, f, "FacebookConnectPlugin", "showDialog", [options]);
exec(s, f, 'FacebookConnectPlugin', 'showDialog', [options])
}
exports.login = function login (permissions, s, f) {
exec(s, f, "FacebookConnectPlugin", "login", permissions);
exec(s, f, 'FacebookConnectPlugin', 'login', permissions)
}

@@ -18,9 +18,9 @@

if (!params && !valueToSum) {
exec(s, f, "FacebookConnectPlugin", "logEvent", [name]);
exec(s, f, 'FacebookConnectPlugin', 'logEvent', [name])
} else if (params && !valueToSum) {
exec(s, f, "FacebookConnectPlugin", "logEvent", [name, params]);
exec(s, f, 'FacebookConnectPlugin', 'logEvent', [name, params])
} else if (params && valueToSum) {
exec(s, f, "FacebookConnectPlugin", "logEvent", [name, params, valueToSum]);
exec(s, f, 'FacebookConnectPlugin', 'logEvent', [name, params, valueToSum])
} else {
f("Invalid arguments");
f('Invalid arguments')
}

@@ -30,16 +30,21 @@ }

exports.logPurchase = function logPurchase (value, currency, s, f) {
exec(s, f, "FacebookConnectPlugin", "logPurchase", [value, currency]);
exec(s, f, 'FacebookConnectPlugin', 'logPurchase', [value, currency])
}
exports.getAccessToken = function getAccessToken (s, f) {
exec(s, f, "FacebookConnectPlugin", "getAccessToken", []);
exec(s, f, 'FacebookConnectPlugin', 'getAccessToken', [])
}
exports.logout = function logout (s, f) {
exec(s, f, "FacebookConnectPlugin", "logout", []);
exec(s, f, 'FacebookConnectPlugin', 'logout', [])
}
exports.api = function api (graphPath, permissions, s, f) {
if (!permissions) { permissions = []; }
exec(s, f, "FacebookConnectPlugin", "graphApi", [graphPath, permissions]);
permissions = permissions || []
exec(s, f, 'FacebookConnectPlugin', 'graphApi', [graphPath, permissions])
}
exports.appInvite = function appLinks (options, s, f) {
options = options || {}
exec(s, f, 'FacebookConnectPlugin', 'appInvite', [options])
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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