cordova-plugin-facebook4
Advanced tools
Comparing version 1.9.1 to 1.10.0
@@ -23,1 +23,10 @@ # Facebook Requirements and Set-Up [Android] | ||
You can now use the plugin right away | ||
## cordova-android >= 7 | ||
In order to install correctly this plugin for `cordova-android` v7.x.y and above, you have to specify the APP_ID and APP_NAME in the android `platform` tag of your `config.xml` | ||
<config-file parent="/resources" target="./res/values/strings.xml"> | ||
<string name="fb_app_id">123456789</string> | ||
<string name="fb_app_name">myApplication</string> | ||
</config-file> |
{ | ||
"name": "cordova-plugin-facebook4", | ||
"version": "1.9.1", | ||
"version": "1.10.0", | ||
"description": "Cordova Facebook SDK 4 Plugin", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -26,3 +26,3 @@ # cordova-plugin-facebook4 | ||
* Cordova >= 5.0.0 | ||
* cordova-android >= 4.0 | ||
* cordova-android >= 4.0 (see Android Guide for cordova-android >= 7) | ||
* cordova-ios >= 3.8 | ||
@@ -113,4 +113,8 @@ * cordova-browser >= 3.6 | ||
For iOS, the default dialog mode is [`FBSDKShareDialogModeAutomatic`](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/). You can share that by adding a specific dialog mode parameter. The available share dialog modes are: `share_sheet`, `share_feedBrowser`, `share_native` and `share_feedWeb`. [Read more about share dialog modes](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/) | ||
#### iOS | ||
The default dialog mode is [`FBSDKShareDialogModeAutomatic`](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/). You can share that by adding a specific dialog mode parameter. The available share dialog modes are: `share_sheet`, `share_feedBrowser`, `share_native` and `share_feedWeb`. [Read more about share dialog modes](https://developers.facebook.com/docs/reference/ios/current/constants/FBSDKShareDialogMode/) | ||
`caption`, `description` and `picture` were deprecated in Facebok API [v2.9](https://developers.facebook.com/docs/graph-api/changelog/version2.9#gapi-deprecate) and therefore not supported anymore on iOS | ||
Game request: | ||
@@ -117,0 +121,0 @@ |
@@ -59,8 +59,25 @@ /* globals */ | ||
/** | ||
* Functions that resolves or rejects a Promise depending on response. | ||
* | ||
* Cases: | ||
* 1. Resolve/Success: If authResponse exists in response, that means that login is successful. | ||
* In that case resolve (success) function will be invoked with authResponse value. | ||
* 2. Reject/Failure: In any other case (no response or response.authResponse) reject (failure) is invoked. | ||
* a. response exists and response.status exists, rejected with response.status.message. | ||
* b. response exists and response.status does not exist, rejected with response. | ||
* c. response does not exist, rejected with 'no response' message. | ||
*/ | ||
FB.login(function (response) { | ||
if (response.authResponse) { | ||
s(response) | ||
} else { | ||
f(response.status.message) | ||
} | ||
} else if (response) { // Previously this was just an else statement. | ||
if (response.status) { // When status is undefined this would throw an error, and rejection function would never be invoked. | ||
f(response.status.message) | ||
} else { | ||
f(response) | ||
} | ||
} else { // In case that no response is available (e.g. popup dismissed) | ||
f('No response') | ||
} | ||
}, options) | ||
@@ -67,0 +84,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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
55872031
132
596
352
1