cordova-plugin-facebook4
Advanced tools
Comparing version 1.3.0-1 to 1.3.0
{ | ||
"name": "cordova-plugin-facebook4", | ||
"version": "1.3.0-1", | ||
"version": "1.3.0", | ||
"description": "Cordova Facebook SDK 4 Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -95,3 +95,3 @@ # cordova-plugin-facebook4 | ||
method: "share", | ||
link: "http://example.com", | ||
href: "http://example.com", | ||
caption: "Such caption, very feed.", | ||
@@ -98,0 +98,0 @@ description: "Much description", |
/* global FB */ | ||
var isInited = false | ||
// Bake in the JS SDK | ||
insertSdk() | ||
exports.getLoginStatus = function getLoginStatus (s, f) { | ||
@@ -108,8 +105,4 @@ if (!assertInited()) return printError(f, new Error('init not called with valid version')) | ||
window.fbAsyncInit = function fbAsyncInit () { | ||
isInited = true | ||
if (typeof s === 'function') s() | ||
} | ||
version = version || 'v2.4' | ||
function _actualInit () { | ||
version = version || 'v2.4' | ||
FB.init({ | ||
@@ -120,10 +113,10 @@ appId: appId, | ||
}) | ||
isInited = true | ||
if (typeof s === 'function') s() | ||
} | ||
// deal with race condition of calling FB.init before loading the SDK | ||
var interval = setInterval(function () { | ||
if (!window.FB) return | ||
clearInterval(interval) | ||
_actualInit() | ||
}, 200) | ||
// Bake in the JS SDK | ||
insertSdk() | ||
} | ||
@@ -130,0 +123,0 @@ |
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
29298049
1
522
1