mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
feat(facebook): plugin updates (#3721)
This commit is contained in:
parent
29bd694d9f
commit
6f14bce6ce
@ -5,16 +5,12 @@ export interface FacebookLoginResponse {
|
|||||||
status: string;
|
status: string;
|
||||||
|
|
||||||
authResponse: {
|
authResponse: {
|
||||||
session_key: boolean;
|
|
||||||
|
|
||||||
accessToken: string;
|
accessToken: string;
|
||||||
|
|
||||||
|
data_access_expiration_time: string;
|
||||||
|
|
||||||
expiresIn: number;
|
expiresIn: number;
|
||||||
|
|
||||||
sig: string;
|
|
||||||
|
|
||||||
secret: string;
|
|
||||||
|
|
||||||
userID: string;
|
userID: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@ -152,6 +148,46 @@ export class Facebook extends IonicNativePlugin {
|
|||||||
EVENT_PARAM_VALUE_NO: '0',
|
EVENT_PARAM_VALUE_NO: '0',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current application ID
|
||||||
|
*
|
||||||
|
* @returns {Promise<string>} Returns a Promise that resolves with the current application ID
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getApplicationId(): Promise<string> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the application ID
|
||||||
|
*
|
||||||
|
* @param {string} id application ID
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
setApplicationId(id: string): Promise<void> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current application name
|
||||||
|
*
|
||||||
|
* @returns {Promise<string>} Returns a Promise that resolves with the current application name
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getApplicationName(): Promise<string> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the application name
|
||||||
|
*
|
||||||
|
* @param {string} name application name
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
setApplicationName(name: string): Promise<void> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Login to Facebook to authenticate this app.
|
* Login to Facebook to authenticate this app.
|
||||||
*
|
*
|
||||||
@ -159,11 +195,9 @@ export class Facebook extends IonicNativePlugin {
|
|||||||
* {
|
* {
|
||||||
* status: 'connected',
|
* status: 'connected',
|
||||||
* authResponse: {
|
* authResponse: {
|
||||||
* session_key: true,
|
|
||||||
* accessToken: 'kgkh3g42kh4g23kh4g2kh34g2kg4k2h4gkh3g4k2h4gk23h4gk2h34gk234gk2h34AndSoOn',
|
* accessToken: 'kgkh3g42kh4g23kh4g2kh34g2kg4k2h4gkh3g4k2h4gk23h4gk2h34gk234gk2h34AndSoOn',
|
||||||
|
* data_access_expiration_time: '1623680244',
|
||||||
* expiresIn: 5183979,
|
* expiresIn: 5183979,
|
||||||
* sig: '...',
|
|
||||||
* secret: '...',
|
|
||||||
* userID: '634565435'
|
* userID: '634565435'
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
@ -257,9 +291,8 @@ export class Facebook extends IonicNativePlugin {
|
|||||||
* authResponse: {
|
* authResponse: {
|
||||||
* userID: '12345678912345',
|
* userID: '12345678912345',
|
||||||
* accessToken: 'kgkh3g42kh4g23kh4g2kh34g2kg4k2h4gkh3g4k2h4gk23h4gk2h34gk234gk2h34AndSoOn',
|
* accessToken: 'kgkh3g42kh4g23kh4g2kh34g2kg4k2h4gkh3g4k2h4gk23h4gk2h34gk234gk2h34AndSoOn',
|
||||||
* session_Key: true,
|
* data_access_expiration_time: '1623680244',
|
||||||
* expiresIn: '5183738',
|
* expiresIn: '5183738'
|
||||||
* sig: '...'
|
|
||||||
* },
|
* },
|
||||||
* status: 'connected'
|
* status: 'connected'
|
||||||
* }
|
* }
|
||||||
|
Loading…
Reference in New Issue
Block a user