cordova-plugin-facebook4
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"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
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
43584305
525
334
215