cordova-plugin-facebook4
Advanced tools
Comparing version 1.1.1 to 1.2.0
{ | ||
"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
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
25819957
110
530
282