Socket
Socket
Sign inDemoInstall

cordova-plugin-facebook4

Package Overview
Dependencies
Maintainers
4
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.9.1 to 1.10.0

CHANGELOG.md

9

docs/android/README.md

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

2

package.json
{
"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

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