Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.5.0 to 1.6.0

2

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

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

@@ -120,3 +120,28 @@ # cordova-plugin-facebook4

}
Share dialog - Open Graph Story:
{
var obj = {};
obj['og:type'] = 'objectname';
obj['og:title'] = 'Some title';
obj['og:url'] = 'https://en.wikipedia.org/wiki/Main_Page';
obj['og:description'] = 'Some description.';
var ap = {};
ap['expires_in'] = 3600;
var options = {
method: 'share_open_graph', // Required
action: 'actionname', // Required
action_properties: JSON.stringify(ap), // Optional
object: JSON.stringify(obj) // Required
};
}
In case you want to use custom actions/objects, just prepend the app namespace to the name (E.g: ` obj['og:type'] = 'appnamespace:objectname' `, `action: 'appnamespace:actionname'`. The namespace of a Facebook app is found on the Settings page.
For options information see: [Facebook share dialog documentation](https://developers.facebook.com/docs/sharing/reference/share-dialog) [Facebook send dialog documentation](https://developers.facebook.com/docs/sharing/reference/send-dialog)

@@ -176,2 +201,6 @@

### Manually log activation events
`activateApp(Function success, Function failure)`
### App Invites

@@ -193,7 +222,7 @@

```js
facebookConnectPlugin.appInvite(
facebookConnectPlugin.appInvite(
{
url: "http://example.com",
picture: "http://example.com/image.png"
},
},
function(obj){

@@ -209,3 +238,3 @@ if(obj) {

}
},
},
function(obj){

@@ -212,0 +241,0 @@ // error

@@ -49,1 +49,5 @@ var exec = require('cordova/exec')

}
exports.activateApp = function (s, f) {
exec(s, f, 'FacebookConnectPlugin', 'activateApp', [])
}

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