diff --git a/src/@ionic-native/plugins/facebook/index.ts b/src/@ionic-native/plugins/facebook/index.ts index c4ec50f078..dc877ee5ca 100644 --- a/src/@ionic-native/plugins/facebook/index.ts +++ b/src/@ionic-native/plugins/facebook/index.ts @@ -263,10 +263,11 @@ export class Facebook extends IonicNativePlugin { * * @param {string} requestPath Graph API endpoint you want to call * @param {string[]} permissions List of [permissions](https://developers.facebook.com/docs/facebook-login/permissions) for this request. + * @param {string} httpMethod HTTP method for the request, one of "GET", "POST", or "DELETE" (default is "GET") * @returns {Promise} Returns a Promise that resolves with the result of the request, or rejects with an error */ @Cordova() - api(requestPath: string, permissions: string[]): Promise { + api(requestPath: string, permissions: string[], httpMethod?: string): Promise { return; } @@ -291,10 +292,11 @@ export class Facebook extends IonicNativePlugin { * * @param {number} value Value of the purchase. * @param {string} currency The currency, as an [ISO 4217 currency code](http://en.wikipedia.org/wiki/ISO_4217) + * @param {Object} params An object containing extra data to log with the event * @returns {Promise} */ @Cordova() - logPurchase(value: number, currency: string): Promise { + logPurchase(value: number, currency: string, params?: Object): Promise { return; }